Skip to content

Commit 210f1d5

Browse files
committed
Add explicit permissions
1 parent 890899f commit 210f1d5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/api-surface-area-review-verification.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: API Surface Area Review Verification
22

3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
37
on:
48
pull_request:
59
types: [ opened, synchronize, reopened, labeled, unlabeled ]

.github/workflows/changelog-verification.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Changelog verification
22

3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
37
on:
48
pull_request:
59
types: [ opened, synchronize, reopened, labeled, unlabeled ]
@@ -12,7 +16,7 @@ jobs:
1216
steps:
1317
- uses: actions/checkout@v4
1418
- name: Check for changelog entry
15-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }}
19+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'changelog-not-required') }}
1620
run: |
1721
git fetch origin ${{ github.base_ref }} --depth 1 && \
1822
git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/next-release/*[a-zA-Z0-9_-]+\.json"

0 commit comments

Comments
 (0)