Skip to content

Commit afd68ea

Browse files
integrated with updated audit fix to handle provided build script
1 parent 1d7f8b7 commit afd68ea

File tree

3 files changed

+44
-25
lines changed

3 files changed

+44
-25
lines changed

.github/actions/cache-npm/audit-package.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/actions_release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
tag:
77
description: "Tag for the release"
88
required: true
9+
script:
10+
description: "Specify the build script to run"
11+
required: false
12+
type: string
13+
default: "npm run test"
914

1015
permissions:
1116
contents: read
@@ -18,4 +23,5 @@ jobs:
1823
contents: write
1924
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
2025
with:
21-
tag: "${{ github.event.inputs.tag }}"
26+
tag: "${{ github.event.inputs.tag }}"
27+
script: "${{ github.event.inputs.script }}"

.github/workflows/audit-package.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Dependency Audit Fix Run
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
package_manager:
7+
required: false
8+
default: "npm"
9+
force:
10+
description: "Use --force flag for npm audit fix?"
11+
required: false
12+
type: boolean
13+
base_branch:
14+
required: false
15+
default: "main"
16+
use_private_packages:
17+
description: "Use private packages (default: false)"
18+
required: false
19+
type: boolean
20+
script:
21+
required: false
22+
default: "npm run test"
23+
24+
permissions:
25+
contents: write
26+
pull-requests: write
27+
packages: read
28+
29+
jobs:
30+
audit-fix:
31+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
32+
with:
33+
package_manager: ${{ inputs.package_manager }}
34+
force: ${{ inputs.force }}
35+
base_branch: ${{ inputs.base_branch }}
36+
use_private_packages: ${{ inputs.use_private_packages }}
37+
script: ${{ inputs.script }}

0 commit comments

Comments
 (0)