Skip to content

Commit dd482af

Browse files
author
trae
committed
CI: run cargo-audit directly
1 parent 80cd98b commit dd482af

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/security.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
permissions:
1010
contents: read
11-
checks: write
1211

1312
jobs:
1413
audit:
@@ -19,14 +18,13 @@ jobs:
1918
- uses: dtolnay/rust-toolchain@stable
2019
- name: Ensure Cargo.lock exists
2120
run: |
22-
ls -la
23-
pwd
2421
if [ ! -f Cargo.lock ]; then
2522
cargo generate-lockfile
2623
fi
27-
- uses: rustsec/audit-check@v2
28-
with:
29-
token: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Install cargo-audit
25+
run: cargo install cargo-audit --locked
26+
- name: Run cargo-audit
27+
run: cargo audit --file Cargo.lock
3028

3129
deny:
3230
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

0 commit comments

Comments
 (0)