Skip to content

Commit c488328

Browse files
seebeesAdnaneKhan
andauthored
ci: scope down GitHub Token permissions (#824)
* ci: scope down permissions for pull.yml * ci: scope down permissions for repo-sync.yml * ci: scope down permissions for push.yml * ci: scope down permissions for ci_tests.yaml * ci: scope down permissions for ci_static-analysis.yaml --------- Co-authored-by: Adnan Khan <AdnaneKhan@users.noreply.github.com>
1 parent a16e536 commit c488328

5 files changed

Lines changed: 16 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
@@ -7,6 +7,9 @@ on:
77
schedule:
88
- cron: '0 0 * * *'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
analysis:
1215
runs-on: ubuntu-latest

.github/workflows/ci_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
schedule:
88
- cron: '0 0 * * *'
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
tests:
1215
runs-on: ${{ matrix.platform.os }}

.github/workflows/pull.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Pull Request Checks
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
call-integration-tests:
811
name: Run Integration Tests

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: master
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
call-integration-tests:
912
name: Run Integration Tests

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