Skip to content

Commit 6f9557a

Browse files
authored
ci: scope down GitHub Token permissions (#308)
1 parent 280a894 commit 6f9557a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/ci_static-analysis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: static analysis
33

44
on: ["pull_request", "push"]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
not-grep:
811
runs-on: ubuntu-latest

.github/workflows/repo-sync.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Repo Sync
33
on:
44
workflow_dispatch: # allows triggering this manually through the Actions UI
55

6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
610
jobs:
711
repo-sync:
812
name: Repo Sync

0 commit comments

Comments
 (0)