Skip to content

Commit 9e4e077

Browse files
authored
Harden GitHub Actions token permissions (#121) (#122)
1 parent 496f4aa commit 9e4e077

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: ci
2+
permissions: read-all
23
on:
34
push:
45
branches: [ main ]
@@ -24,6 +25,9 @@ jobs:
2425
build:
2526
runs-on: ${{ matrix.os }}
2627
needs: cpplint
28+
permissions:
29+
contents: read
30+
actions: write
2731
strategy:
2832
matrix:
2933
os: [ ubuntu-24.04, windows-2022 ]

0 commit comments

Comments
 (0)