Skip to content

Commit 391a4de

Browse files
committed
CI: Restrict default permissions
Reduces risk of arbitrary code is run by attacker.
1 parent a6db1fc commit 391a4de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: CI
2-
permissions:
3-
contents: write
42

53
on: [push, pull_request]
64

75
jobs:
86
build:
97
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
1011
steps:
1112
- uses: actions/checkout@v4
1213
with:

0 commit comments

Comments
 (0)