ci: add minimum GitHub token permissions for workflows (#5072)

Signed-off-by: Ashish Kurmi <[email protected]>
This commit is contained in:
Ashish Kurmi
2022-10-03 05:15:23 -04:00
committed by GitHub
parent f4e08aec66
commit b821e436c5
6 changed files with 25 additions and 0 deletions
+7
View File
@@ -9,8 +9,15 @@ on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC
permissions:
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
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps: