Skip to content

Commit adfd783

Browse files
Merge pull request #89 from step-security/fix_Audit-Package-Workflow-Cron
fix: update audit package cron to handle build script commit name
2 parents de03090 + 916f57c commit adfd783

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/audit_package.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ on:
77
description: "Specify a base branch"
88
required: false
99
default: "main"
10+
package_manager:
11+
description: "Specify package manager (npm or yarn)"
12+
required: false
13+
default: "yarn"
14+
15+
schedule:
16+
- cron: "0 0 * * 1"
1017

1118
jobs:
1219
audit-fix:
13-
uses: step-security/reusable-workflows/.github/workflows/yarn_audit_fix.yml@v1
20+
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
1421
with:
15-
base_branch: ${{ inputs.base_branch }}
22+
base_branch: ${{ inputs.base_branch || 'main' }}
23+
package_manager: "yarn"
1624

1725
permissions:
1826
contents: write
1927
pull-requests: write
28+
packages: read
29+
issues: write

0 commit comments

Comments
 (0)