Skip to content

Commit 17808ee

Browse files
audit package workflow added
1 parent 37c5588 commit 17808ee

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/audit_package.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Yarn Audit Fix Run
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
base_branch:
7+
description: "Specify a base branch"
8+
required: false
9+
default: "main"
10+
package_manager:
11+
description: "Specify package manager (npm or yarn)"
12+
required: false
13+
default: "yarn"
14+
script:
15+
description: "Specify a script to run after audit fix"
16+
required: false
17+
default: "yarn build"
18+
19+
schedule:
20+
- cron: "0 0 * * 1"
21+
22+
jobs:
23+
audit-fix:
24+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
25+
with:
26+
base_branch: ${{ inputs.base_branch || 'main' }}
27+
package_manager: "yarn"
28+
script: ${{ inputs.script || 'yarn build' }}
29+
30+
permissions:
31+
contents: write
32+
pull-requests: write
33+
packages: read
34+
issues: write

0 commit comments

Comments
 (0)