-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.03 KB
/
audit_package.yml
File metadata and controls
39 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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'
node_version:
description: "Specify Node.js version (e.g., '18', '20', 'lts/*')"
required: false
default: "24"
schedule:
- cron: "0 0 * * 1"
jobs:
audit-fix:
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
with:
package_manager: ${{ inputs.package_manager || 'yarn' }}
base_branch: ${{ inputs.base_branch || 'main' }}
script: ${{ inputs.script || 'yarn build' }}
node_version: "${{ inputs.node_version || '24' }}"
permissions:
contents: write
pull-requests: write
packages: read
issues: write