Skip to content

Commit d39dca7

Browse files
committed
test: fix permissions of cargo audit action
This should prevent the action from failing Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent 68bd423 commit d39dca7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/security-audit-cron.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ permissions: read-all
88

99
jobs:
1010
audit:
11+
permissions:
12+
checks: write # for rustsec/audit-check to create check
13+
contents: read # for actions/checkout to fetch code
14+
issues: write # for rustsec/audit-check to create issues
1115
runs-on: ubuntu-latest
1216
steps:
1317
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

.github/workflows/security-audit-reactive.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ permissions: read-all
1010

1111
jobs:
1212
security_audit:
13+
permissions:
14+
checks: write # for rustsec/audit-check to create check
15+
contents: read # for actions/checkout to fetch code
16+
issues: write # for rustsec/audit-check to create issues
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

0 commit comments

Comments
 (0)