Skip to content

Commit ebc54c8

Browse files
committed
ci: restrict GITHUB_TOKEN permissions
Signed-off-by: Rifa Achrinza <[email protected]>
1 parent 06df99f commit ebc54c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
branches:
99
- 5.x
1010

11+
permissions: {}
12+
1113
jobs:
1214
build:
1315
runs-on: ubuntu-latest
@@ -64,6 +66,9 @@ jobs:
6466
codeql:
6567
name: CodeQL
6668
runs-on: ubuntu-latest
69+
permissions:
70+
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage
71+
security-events: write
6772
steps:
6873
- name: Checkout repository
6974
uses: actions/checkout@v2
@@ -75,4 +80,4 @@ jobs:
7580
config-file: ./.github/codeql/codeql-config.yml
7681

7782
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@v1
83+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)