Skip to content

Commit 925b8ad

Browse files
AdnaneKhanseebees
andauthored
ci: scope down GitHub Token permissions (#1612)
* ci: scope down permissions for repo-sync.yml * ci: scope down permissions for daily_ci.yml * ci: scope down permissions for ci_static-analysis.yaml --------- Co-authored-by: seebees <ryanemer@amazon.com>
1 parent 9556272 commit 925b8ad

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.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)