Skip to content

Commit 9a58695

Browse files
committed
ci: restrict GITHUB_TOKEN permissions
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent 5aa2d71 commit 9a58695

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
schedule:
1010
- cron: '0 2 * * 1' # At 02:00 on Monday
1111

12+
permissions: {}
13+
1214
jobs:
1315
test:
1416
name: Test
@@ -102,6 +104,11 @@ jobs:
102104
codeql:
103105
name: CodeQL
104106
runs-on: ubuntu-latest
107+
108+
permissions:
109+
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage
110+
security-events: write
111+
105112
steps:
106113
- name: Checkout repository
107114
uses: actions/checkout@v2

0 commit comments

Comments
 (0)