ci: add daily audit canary for the v5 stable release#14858
Open
pranavosu wants to merge 1 commit into
Open
Conversation
Adds a scheduled workflow that installs the published aws-amplify `stable-5` dist-tag into a clean project and runs `npm audit` daily, so newly disclosed vulnerabilities in the v5 LTS dependency tree are surfaced proactively rather than via consumer reports. Generic (not tied to any single advisory). Scheduled workflows only run from the default branch, so this lives on main while auditing the stable-5 line.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a scheduled GitHub Actions workflow that installs the published
aws-amplifyv5 LTS release (thestable-5dist-tag) into a clean project andruns
npm auditonce a day. The goal is to catch newly disclosedvulnerabilities in the v5 dependency tree proactively, rather than learning
about them from consumer reports.
It asserts that a fresh
aws-amplify@stable-5install has aclean production-dependency audit.
Behavior
schedule(15:30 UTC) and manualworkflow_dispatch.aws-amplify@stable-5with--omit=dev --ignore-scriptsin a tempproject.
npm auditreport, then fails the run if any advisoryaffects the production tree. The severity threshold can be tuned with
--audit-level=<...>if low-severity noise becomes a problem on the LTS line.automatically can be added later if desired.
Testing
test:github-actions).workflow_dispatchallows a manual run to validate once merged.