Skip to content

Commit

Permalink
alter on: to ensure PRs from forks get upstream permissions
Browse files Browse the repository at this point in the history
this should allow the default token to have enough perms to label
issues, even if the PR is coming from a fork.
  • Loading branch information
jonchurch committed Nov 6, 2024
1 parent df72523 commit 47ad1a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/adr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: ADR Labeler

on:
pull_request:
pull_request_target:
types: [opened, synchronize]
paths:
- 'docs/adr/**'

jobs:
label-adr:
runs-on: ubuntu-latest
permissions:
pull-requests: write


steps:
- uses: actions/github-script@v7
with:
script: |
# Adding ADR label - if it already exists, this is a no-op
// Adding ADR label - if it already exists, this is a no-op
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 47ad1a2

Please sign in to comment.