Skip to content

Commit

Permalink
Set minimal permissions at security-audit.yml (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoteles08 authored Dec 29, 2023
1 parent cc77203 commit 143f342
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ on:
schedule:
- cron: "0 0 * * *"

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
security_audit:
permissions:
checks: write # for actions-rs/audit-check to create check
contents: read # for actions/checkout to fetch code
issues: write # for actions-rs/audit-check to create issues
name: Security Audit
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 143f342

Please sign in to comment.