Skip to content

Commit 01f5edb

Browse files
Merge pull request #131 from step-security/Raj-StepSecurity-patch-2
ci: Update auto_cherry_pick.yml
2 parents 92da25b + 1b3a417 commit 01f5edb

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/auto_cherry_pick.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ on:
1515
description: "Specify a script to run after audit fix"
1616
required: false
1717
default: "pnpm build"
18+
mode:
19+
description: "Run mode: cherry-pick or verify"
20+
required: false
21+
default: "cherry-pick"
22+
23+
pull_request:
24+
types: [labeled, opened, synchronize]
1825

1926
permissions:
2027
contents: write
@@ -23,11 +30,13 @@ permissions:
2330
issues: write
2431

2532
jobs:
26-
audit-fix:
27-
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@upstream-Changes-CherryPick
33+
cherry-pick:
34+
if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required')
35+
uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@v1
2836
with:
2937
original-owner: "pnpm"
3038
repo-name: "action-setup"
3139
base_branch: ${{ inputs.base_branch }}
3240
package_manager: "pnpm"
33-
script: ${{ inputs.script || 'pnpm build' }}
41+
script: ${{ inputs.script || 'pnpm build' }}
42+
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}

0 commit comments

Comments
 (0)