Skip to content

Commit d6ea9c2

Browse files
Merge pull request #283 from AdnaneKhan/update/scopedown-token
ci: scope down GitHub Token permissions
2 parents 4453b4f + 47e8ba2 commit d6ea9c2

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/auto_assign.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
types: [opened, ready_for_review]
55

6+
permissions:
7+
pull-requests: write
8+
69
jobs:
710
add-reviews:
811
runs-on: ubuntu-latest

.github/workflows/label_pr_on_title.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
pull-requests: write
11+
912
jobs:
1013
get_pr_details:
1114
# Guardrails to only ever run if PR recording workflow was indeed

.github/workflows/on_merged_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
issues: write
11+
912
jobs:
1013
get_pr_details:
1114
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'

.github/workflows/on_opened_pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
pull-requests: write
11+
912
jobs:
1013
get_pr_details:
1114
if: ${{ github.event.workflow_run.conclusion == 'success' }}

0 commit comments

Comments
 (0)