Skip to content

audit package workflow added #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/audit_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Yarn Audit Fix Run

on:
workflow_dispatch:
inputs:
base_branch:

Check notice

Code scanning / Checkov (reported by Codacy)

The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty. Note

The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty.
description: "Specify a base branch"
required: false
default: "main"
package_manager:
description: "Specify package manager (npm or yarn)"
required: false
default: "yarn"
script:
description: "Specify a script to run after audit fix"
required: false
default: "yarn build"

schedule:
- cron: "0 0 * * 1"

jobs:
audit-fix:
uses: step-security/reusable-workflows/.github/workflows/audit_fix.yml@v1
with:
base_branch: ${{ inputs.base_branch || 'main' }}
package_manager: "yarn"
script: ${{ inputs.script || 'yarn build' }}

permissions:
contents: write
pull-requests: write
packages: read
issues: write
Loading