Skip to content

Commit 47ad1a2

Browse files
committed
alter on: to ensure PRs from forks get upstream permissions
this should allow the default token to have enough perms to label issues, even if the PR is coming from a fork.
1 parent df72523 commit 47ad1a2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/adr-labeler.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
name: ADR Labeler
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize]
66
paths:
77
- 'docs/adr/**'
88

99
jobs:
1010
label-adr:
1111
runs-on: ubuntu-latest
12-
permissions:
13-
pull-requests: write
14-
12+
1513
steps:
1614
- uses: actions/github-script@v7
1715
with:
1816
script: |
19-
# Adding ADR label - if it already exists, this is a no-op
17+
// Adding ADR label - if it already exists, this is a no-op
2018
github.rest.issues.addLabels({
2119
owner: context.repo.owner,
2220
repo: context.repo.repo,

0 commit comments

Comments
 (0)