Skip to content

Commit c0e51e0

Browse files
authored
fix: restrict GITHUB_TOKEN permissions in CI workflows (#20)
2 parents 51e76d5 + feaf5cc commit c0e51e0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
# Allow manual triggering
1515
workflow_dispatch:
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
integration-tests:
1922
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)