Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- master
- main

permissions:
contents: read

jobs:
test:
name: Rust checks (${{ matrix.os }})
Expand All @@ -17,7 +20,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
- name: Format
run: cargo fmt --check
- name: Clippy
Expand All @@ -30,9 +35,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
- name: Install cargo-audit
run: cargo install cargo-audit --version 0.22.1 --locked
- name: Audit
run: cargo audit --file Cargo.lock

secrets:
name: Secret scan
Expand All @@ -41,6 +50,7 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Install Gitleaks
env:
GITLEAKS_VERSION: 8.30.1
Expand Down