From 6fd89f9be711068149018a5ba9f198c45435e679 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Sun, 19 May 2024 09:33:32 -0500 Subject: [PATCH] fix: allow access to forked pull request labels Release fails if pull request is from a fork currently because we can't access the labels on the forked pull request which helps us determine semver for next release. Saw this after merging https://github.com/github/issue-metrics/pull/283 (from a fork) Add pull_request_target to release action workflow I am not worried about the security implications with us checking out the forked pull requests code. This action only fires after a merge to main so this means the pull request code has been reviewed by a maintainer. We are post-CI/code run. Signed-off-by: jmeridth --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32649d4..4b85412 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,11 @@ - closed branches: - main + pull_request_target: + types: + - closed + branches: + - main permissions: contents: read