Skip to content

Commit 0eed419

Browse files
authored
CI: fix security audit (#95)
1 parent ca6e12a commit 0eed419

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
name: Security Audit
22
on:
33
pull_request:
4-
paths: Cargo.lock
4+
paths:
5+
- .github/workflows/security-audit.yml
6+
- Cargo.lock
57
push:
68
branches: master
7-
paths: Cargo.lock
9+
paths:
10+
- .github/workflows/security-audit.yml
11+
- Cargo.lock
812
schedule:
913
- cron: "0 0 * * *"
1014

15+
permissions: # added using https://github.com/step-security/secure-repo
16+
contents: read
17+
1118
jobs:
1219
security_audit:
1320
name: Security Audit
1421
runs-on: ubuntu-latest
22+
permissions:
23+
checks: write
24+
contents: read
25+
issues: write
1526
steps:
1627
- uses: actions/checkout@v4
1728
- name: Cache cargo bin
1829
uses: actions/cache@v4
1930
with:
2031
path: ~/.cargo/bin
21-
key: ${{ runner.os }}-cargo-audit-v0.12.0
22-
- uses: actions-rs/audit-check@v1
32+
key: ${{ runner.os }}-cargo-audit-v0.22.0
33+
- uses: rustsec/audit-check@v2
2334
with:
2435
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)