diff --git a/.github/workflows/actions_release.yml b/.github/workflows/actions_release.yml index 6082ace..d997a96 100644 --- a/.github/workflows/actions_release.yml +++ b/.github/workflows/actions_release.yml @@ -6,6 +6,17 @@ on: tag: description: "Tag for the release" required: true + node_version: + description: "Specify Node.js version" + required: false + type: string + default: "20" + script: + description: "Specify the build script to run" + required: false + type: string + default: "yarn build" + permissions: contents: read @@ -16,6 +27,8 @@ jobs: actions: read id-token: write contents: write - uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1 + uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@fix_Verify_cherry_pick-Logic with: - tag: "${{ github.event.inputs.tag }}" \ No newline at end of file + tag: "${{ github.event.inputs.tag }}" + node_version: ${{ inputs.node_version }} + script: "${{ github.event.inputs.script }}" \ No newline at end of file diff --git a/.github/workflows/audit_package.yml b/.github/workflows/audit_package.yml index 59f0701..301e30e 100644 --- a/.github/workflows/audit_package.yml +++ b/.github/workflows/audit_package.yml @@ -11,16 +11,28 @@ on: description: "Specify package manager (npm or yarn)" required: false default: "yarn" + node_version: + description: "Specify Node.js version" + required: false + type: string + default: "20" + script: + description: "Specify the build script to run" + required: false + type: string + default: "yarn build" schedule: - cron: "0 0 * * 1" jobs: audit-fix: - uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1 + uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@fix_Verify_cherry_pick-Logic with: base_branch: ${{ inputs.base_branch || 'main' }} package_manager: "yarn" + node_version: ${{ inputs.node_version }} + script: ${{ inputs.script || 'yarn build' }} permissions: contents: write diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index c376487..adc98af 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -15,6 +15,12 @@ on: description: "Specify package manager if available (npm or yarn)" required: false default: "yarn" + node_version: + description: "Specify Node.js version" + required: false + type: string + default: "20" + pull_request: types: [labeled, opened, synchronize] @@ -35,4 +41,5 @@ jobs: base_branch: ${{ inputs.base_branch }} script: ${{ inputs.script }} package_manager: ${{ inputs.package_manager }} + node_version: ${{ inputs.node_version }} mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}