Skip to content

Commit 6381f5d

Browse files
authored
fix: revert autolabeler to release-drafter v6.4.0 (#115)
## What Reverted the auto-labeler workflow from the release-drafter v7 autolabeler sub-action back to the v6.4.0 main action with disable-releaser: true. ## Why The v7 autolabeler sub-action hardcodes a strict check for the pull_request event and rejects pull_request_target. Since this reusable workflow is called from a pull_request_target trigger (required for labeling fork PRs with write permissions), the autolabeler fails on every fork PR. ## Notes - The v6 action uses GITHUB_TOKEN via env rather than the token input - release-drafter v7 is still used in the release workflow; only the autolabeler is pinned to v6 - Consider opening an upstream issue on release-drafter to support pull_request_target in the v7 autolabeler Signed-off-by: jmeridth <jmeridth@gmail.com>
1 parent 30db329 commit 6381f5d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/auto-labeler.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
2323
with:
2424
egress-policy: audit
25-
- uses: release-drafter/release-drafter/autolabeler@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0.0
25+
- uses: release-drafter/release-drafter@6a93d829887aa2e0748befe2e808c66c0ec6e4c7 # v6.4.0
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.github-token }}
2628
with:
2729
config-name: ${{ inputs.config-name }}
28-
token: ${{ secrets.github-token }}
30+
disable-releaser: true

0 commit comments

Comments
 (0)