Skip to content

Commit

Permalink
Fix permissions for CodeQL workflows (#16660)
Browse files Browse the repository at this point in the history
After limiting permissions, our CodeQL workflow started failing.

This is because it needs some extra permissions as explained in
the github/codeql-action#464

This PR adds the required permissions.

GitOrigin-RevId: b8a9e9fba6737500bdcce920028ece87a31ab129
  • Loading branch information
potiuk authored and Cloud Composer Team committed Jan 27, 2023
1 parent f74b441 commit 9446706
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['python', 'javascript']

permissions:
actions: read
contents: read
pull-requests: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down

0 comments on commit 9446706

Please sign in to comment.