Skip to content

Commit

Permalink
chore(ci): Harden CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed Nov 3, 2024
1 parent cfa1692 commit 6f03258
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- 1.74.0 # MSRV
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Rust
run: rustup install --profile minimal ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Install cross
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Release

permissions:
contents: write

on:
push:
Expand All @@ -11,8 +9,12 @@ on:
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: taiki-e/[email protected]
with:
draft: true
Expand All @@ -23,6 +25,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Expand All @@ -33,6 +37,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get AUR repo
run: git clone https://aur.archlinux.org/keyboard-backlightd.git aur
- name: Update PKGBUILD
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Rust
run: rustup update stable && rustup default stable && rustup component add clippy
Expand Down

0 comments on commit 6f03258

Please sign in to comment.