Skip to content

Commit 87357db

Browse files
authored
Restrict GITHUB_TOKEN permissions (microsoft#16013)
1 parent 4fe2561 commit 87357db

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/assign-reviewers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'review_request_removed'
1010
- 'ready_for_review'
1111

12+
permissions:
13+
pull-requests: write
14+
1215
jobs:
1316
assign:
1417
name: 'Assignee & Code Reviewers'

.github/workflows/issue-labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
issues:
55
types: [opened, reopened]
66

7+
permissions:
8+
issues: write
9+
710
jobs:
811
# From https://github.com/marketplace/actions/github-script#apply-a-label-to-an-issue.
912
add-classify-label:

0 commit comments

Comments
 (0)