Skip to content

Commit

Permalink
ci: set permissions for nested workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezr committed Mar 14, 2024
1 parent 3ed6dbe commit 84e28f2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,19 @@ jobs:
call-workflow-codeql:
needs: test-source-code
uses: ./.github/workflows/codeql-analysis.yml@master
uses: ./.github/workflows/codeql-analysis.yml
permissions:

Check notice

Code scanning / Checkov (reported by Codacy)

Ensure top-level permissions are not set to write-all Note test

Ensure top-level permissions are not set to write-all
actions: read
contents: read
pull-requests: write
security-events: write

call-workflow-codacity:
needs: test-source-code
uses: ./.github/workflows/codacy-analysis.yml@master
uses: ./.github/workflows/codacy-analysis.yml
permissions:
actions: read
contents: read
pull-requests: write
security-events: write

0 comments on commit 84e28f2

Please sign in to comment.