Skip to content

Commit b8a9e9f

Browse files
authored
Fix permissions for CodeQL workflows (#16660)
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.
1 parent 4022746 commit b8a9e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ jobs:
6767
# Override automatic language detection by changing the below list
6868
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
6969
language: ['python', 'javascript']
70-
70+
permissions:
71+
actions: read
72+
contents: read
73+
pull-requests: read
74+
security-events: write
7175
steps:
7276
- name: Checkout repository
7377
uses: actions/checkout@v2

0 commit comments

Comments
 (0)