Skip to content

Commit e4ccbdb

Browse files
authored
Merge pull request #131 from step-security/ci/auto_cherry_pick
ci: provided node version as input for auto cherry pick
2 parents e538319 + 1f0f807 commit e4ccbdb

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

.github/workflows/actions_release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ on:
66
tag:
77
description: "Tag for the release"
88
required: true
9+
node_version:
10+
description: "Specify Node.js version"
11+
required: false
12+
type: string
13+
default: "20"
14+
script:
15+
description: "Specify the build script to run"
16+
required: false
17+
type: string
18+
default: "yarn build"
19+
920

1021
permissions:
1122
contents: read
@@ -16,6 +27,8 @@ jobs:
1627
actions: read
1728
id-token: write
1829
contents: write
19-
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
30+
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@fix_Verify_cherry_pick-Logic
2031
with:
21-
tag: "${{ github.event.inputs.tag }}"
32+
tag: "${{ github.event.inputs.tag }}"
33+
node_version: ${{ inputs.node_version }}
34+
script: "${{ github.event.inputs.script }}"

.github/workflows/audit_package.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,28 @@ on:
1111
description: "Specify package manager (npm or yarn)"
1212
required: false
1313
default: "yarn"
14+
node_version:
15+
description: "Specify Node.js version"
16+
required: false
17+
type: string
18+
default: "20"
19+
script:
20+
description: "Specify the build script to run"
21+
required: false
22+
type: string
23+
default: "yarn build"
1424

1525
schedule:
1626
- cron: "0 0 * * 1"
1727

1828
jobs:
1929
audit-fix:
20-
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
30+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@fix_Verify_cherry_pick-Logic
2131
with:
2232
base_branch: ${{ inputs.base_branch || 'main' }}
2333
package_manager: "yarn"
34+
node_version: ${{ inputs.node_version }}
35+
script: ${{ inputs.script || 'yarn build' }}
2436

2537
permissions:
2638
contents: write

.github/workflows/auto_cherry_pick.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
description: "Specify package manager if available (npm or yarn)"
1616
required: false
1717
default: "yarn"
18+
node_version:
19+
description: "Specify Node.js version"
20+
required: false
21+
type: string
22+
default: "20"
23+
1824

1925
pull_request:
2026
types: [labeled, opened, synchronize]
@@ -35,4 +41,5 @@ jobs:
3541
base_branch: ${{ inputs.base_branch }}
3642
script: ${{ inputs.script }}
3743
package_manager: ${{ inputs.package_manager }}
44+
node_version: ${{ inputs.node_version }}
3845
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}

0 commit comments

Comments
 (0)