ci: Update audit_package.yml #95
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Cherry-Pick from Upstream | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| base_branch: | |
| description: "Base branch to create the PR against" | |
| required: true | |
| default: "main" | |
| script: | |
| description: "Specify the npm/yarn script to run if available" | |
| required: false | |
| default: "yarn build" | |
| package_manager: | |
| 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] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| packages: read | |
| issues: write | |
| jobs: | |
| cherry-pick: | |
| if: github.event_name == 'workflow_dispatch' || contains(fromJson(toJson(github.event.pull_request.labels)).*.name, 'review-required') | |
| uses: step-security/reusable-workflows/.github/workflows/auto_cherry_pick.yaml@fix_Verify_cherry_pick-Logic | |
| with: | |
| original-owner: "amannn" | |
| repo-name: "action-semantic-pull-request" | |
| 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 }} |