File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Release GitHub Actions
2
-
3
2
on :
4
3
workflow_dispatch :
5
4
inputs :
6
5
tag :
7
6
description : " Tag for the release"
8
7
required : true
8
+ script :
9
+ description : " Specify the build script to run"
10
+ required : false
11
+ type : string
12
+ default : " npm run test"
9
13
10
14
permissions :
11
15
contents : read
12
-
13
16
jobs :
14
17
release :
15
18
permissions :
18
21
contents : write
19
22
uses : step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
20
23
with :
21
- tag : " ${{ github.event.inputs.tag }}"
24
+ tag : " ${{ github.event.inputs.tag }}"
25
+ script : " ${{ github.event.inputs.script }}"
Original file line number Diff line number Diff line change 1
- name : NPM Audit Fix Run
1
+ name : Dependency Audit Fix Run
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
+ package_manager :
7
+ required : false
8
+ default : " npm"
6
9
force :
7
10
description : " Use --force flag for npm audit fix?"
8
- required : true
11
+ required : false
9
12
type : boolean
10
13
base_branch :
11
- description : " Specify a base branch"
12
14
required : false
13
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
14
28
15
29
jobs :
16
30
audit-fix :
17
- uses : step-security/reusable-workflows/.github/workflows/npm_audit_fix .yml@v1
31
+ uses : step-security/reusable-workflows/.github/workflows/audit_fix .yml@v1
18
32
with :
33
+ package_manager : ${{ inputs.package_manager }}
19
34
force : ${{ inputs.force }}
20
35
base_branch : ${{ inputs.base_branch }}
21
-
22
- permissions :
23
- contents : write
24
- pull-requests : write
36
+ use_private_packages : ${{ inputs.use_private_packages }}
37
+ script : ${{ inputs.script }}
You can’t perform that action at this time.
0 commit comments