We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60408b commit 724cb1aCopy full SHA for 724cb1a
.github/workflows/backport.yml
@@ -12,6 +12,17 @@ jobs:
12
contents: write
13
pull-requests: write
14
name: Backport
15
+ # Only react to merged PRs for security reasons.
16
+ # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
17
+ if: >
18
+ github.event.pull_request.merged
19
+ && (
20
+ github.event.action == 'closed'
21
+ || (
22
+ github.event.action == 'labeled'
23
+ && contains(github.event.label.name, 'backport')
24
+ )
25
26
steps:
27
- name: GitHub App token
28
id: github_app_token
0 commit comments