Skip to content

Commit 6ce66e4

Browse files
committed
ci: restrict GITHUB_TOKEN permissions
Signed-off-by: Rifa Achrinza <[email protected]>
1 parent 73f5cc5 commit 6ce66e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
schedule:
1313
- cron: '0 2 * * 1' # At 02:00 on Monday
1414

15+
permissions: {}
16+
1517
jobs:
1618
test:
1719
name: Test
@@ -90,6 +92,9 @@ jobs:
9092
codeql:
9193
name: CodeQL
9294
runs-on: ubuntu-latest
95+
permissions:
96+
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage
97+
security-events: write
9398
steps:
9499
- name: Checkout repository
95100
uses: actions/checkout@v2

0 commit comments

Comments
 (0)