Skip to content

Commit 143f342

Browse files
authored
Set minimal permissions at security-audit.yml (#994)
1 parent cc77203 commit 143f342

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/security-audit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ on:
99
schedule:
1010
- cron: "0 0 * * *"
1111

12+
permissions: # added using https://github.com/step-security/secure-repo
13+
contents: read
14+
1215
jobs:
1316
security_audit:
17+
permissions:
18+
checks: write # for actions-rs/audit-check to create check
19+
contents: read # for actions/checkout to fetch code
20+
issues: write # for actions-rs/audit-check to create issues
1421
name: Security Audit
1522
runs-on: ubuntu-latest
1623
steps:

0 commit comments

Comments
 (0)