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 Oct 7, 2022
1 parent e6176bd commit 7314948
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 7314948

Please sign in to comment.