Skip to content

Commit 3cee19a

Browse files
Merge pull request #42 from step-security/fix_Audit-Fix_workflow
Fix audit fix workflow
2 parents 5e8cd69 + ed5254c commit 3cee19a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/actions_release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tag:
77
description: "Tag for the release"
88
required: true
9+
script:
10+
required: false
11+
default: "npm test"
912

1013
permissions:
1114
contents: read
@@ -18,4 +21,5 @@ jobs:
1821
contents: write
1922
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
2023
with:
21-
tag: "${{ github.event.inputs.tag }}"
24+
tag: "${{ github.event.inputs.tag }}"
25+
script: ${{ github.event.inputs.script }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: NPM Audit Fix Run
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
force:
7+
description: "Use --force flag for npm audit fix?"
8+
required: false
9+
type: boolean
10+
base_branch:
11+
description: "Specify a base branch"
12+
required: false
13+
default: "main"
14+
script:
15+
required: false
16+
default: "npm test"
17+
schedule:
18+
- cron: "0 0 * * 1"
19+
20+
jobs:
21+
audit-fix:
22+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
23+
with:
24+
force: ${{ inputs.force || false }}
25+
base_branch: ${{ inputs.base_branch || 'main' }}
26+
script: ${{ inputs.script || 'npm test'}}
27+
28+
permissions:
29+
contents: write
30+
pull-requests: write
31+
packages: read
32+
issues: write

0 commit comments

Comments
 (0)