Skip to content

Commit c733902

Browse files
authored
Merge pull request #191 from ember-cli/update-release-plan
update release plan workflow
2 parents 8aec613 + 1064027 commit c733902

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/plan-release.yml

Lines changed: 3 additions & 2 deletions
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)