We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80cd98b commit dd482afCopy full SHA for dd482af
.github/workflows/security.yml
@@ -8,7 +8,6 @@ on:
8
9
permissions:
10
contents: read
11
- checks: write
12
13
jobs:
14
audit:
@@ -19,14 +18,13 @@ jobs:
19
18
- uses: dtolnay/rust-toolchain@stable
20
- name: Ensure Cargo.lock exists
21
run: |
22
- ls -la
23
- pwd
24
if [ ! -f Cargo.lock ]; then
25
cargo generate-lockfile
26
fi
27
- - uses: rustsec/audit-check@v2
28
- with:
29
- token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Install cargo-audit
+ run: cargo install cargo-audit --locked
+ - name: Run cargo-audit
+ run: cargo audit --file Cargo.lock
30
31
deny:
32
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
0 commit comments