Yarn Audit Fix Run #16
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: Yarn Audit Fix Run | |
on: | |
workflow_dispatch: | |
inputs: | |
base_branch: | |
description: "Specify a base branch" | |
required: false | |
default: "main" | |
package_manager: | |
description: "Specify package manager (npm or yarn)" | |
required: false | |
default: "yarn" | |
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 | |
with: | |
base_branch: ${{ github.event.inputs.base_branch || 'main' }} | |
package_manager: "yarn" | |
script: ${{ github.event.inputs.script || 'yarn build' }} | |
permissions: | |
contents: write | |
pull-requests: write | |
packages: read | |
issues: write |