Skip to content

Commit 1f0f807

Browse files
committed
ci: made changes to action_release.yml and audit_package.yml\
provided script and node-version as input to both workflows and changed the current brand ref to fix_Verify_cherry_pick-Logic
1 parent 843a366 commit 1f0f807

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-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

0 commit comments

Comments
 (0)