Skip to content

Commit

Permalink
Merge pull request #773 from flavio/update-cargo-audit-action
Browse files Browse the repository at this point in the history
test: fix permissions of cargo audit action
  • Loading branch information
flavio authored May 22, 2024
2 parents 3d1bb6f + d39dca7 commit 2286f65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/security-audit-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ permissions: read-all

jobs:
audit:
permissions:
checks: write # for rustsec/audit-check to create check
contents: read # for actions/checkout to fetch code
issues: write # for rustsec/audit-check to create issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/security-audit-reactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ permissions: read-all

jobs:
security_audit:
permissions:
checks: write # for rustsec/audit-check to create check
contents: read # for actions/checkout to fetch code
issues: write # for rustsec/audit-check to create issues
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Expand Down

0 comments on commit 2286f65

Please sign in to comment.