Repository navigation
NPM Audit Fix Run #31
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: NPM Audit Fix Run | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| base_branch: | |
| description: "Specify a base branch" | |
| required: false | |
| default: "main" | |
| node_version: | |
| description: "Specify Node.js version (e.g., '18', '20', 'lts/*')" | |
| required: false | |
| type: string | |
| default: "24" | |
| script: | |
| description: "Specify the build script to run" | |
| required: false | |
| type: string | |
| default: "yarn build" | |
| package_manager: | |
| description: "Package manager to use" | |
| required: false | |
| default: "yarn" | |
| schedule: | |
| - cron: "0 0 * * 1" | |
| jobs: | |
| audit-fix: | |
| uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1 | |
| with: | |
| force: ${{ inputs.force || false }} | |
| base_branch: ${{ inputs.base_branch || 'main' }} | |
| node_version: "${{ inputs.node_version || '24' }}" | |
| script: "${{ inputs.script || 'yarn build' }}" | |
| package_manager: ${{ inputs.package_manager || 'yarn' }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| packages: read | |
| issues: write |