Skip to content

Commit bf21afc

Browse files
authored
Merge pull request #488 from adopted-ember-addons/kategengler-patch-1
2 parents 857638d + 63ad541 commit bf21afc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/plan-release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on:
44
branches:
55
- main
66
- master
7-
pull_request:
7+
pull_request_target: # This workflow has permissions on the repo, do NOT run code from PRs in this workflow. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
88
types:
99
- labeled
10+
- unlabeled
1011

1112
concurrency:
1213
group: plan-release # only the latest one of these should ever be running
@@ -41,7 +42,7 @@ jobs:
4142
explanation: ${{ steps.explanation.outputs.text }}
4243
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing)
4344
# only run on labeled event if the PR has already been merged
44-
if: (github.event_name == 'push' && needs.check-plan.outputs.command != 'release') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
45+
if: (github.event_name == 'push' && needs.check-plan.outputs.command != 'release') || (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
4546

4647
steps:
4748
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)