[MINOR] Add daily npm audit remediation workflow - #5390
Open
jongyoul wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to automatically detect high/critical npm audit issues in zeppelin-web-angular/projects/zeppelin-react and (when safeguards pass) prepare a lockfile-only remediation via a dedicated automation branch and draft PR. This fits into the repo’s CI/automation layer by standardizing a repeatable, validated dependency-audit remediation path for the React subproject.
Changes:
- Introduces a scheduled + manually dispatchable workflow to run
npm audit(high+) and, when needed, generate a lockfile-only fix validated by install/audit/lint/test/build. - Splits the workflow into a read-only “prepare” job and a write-capable “publish” job that updates a fixed automation branch and creates/updates a draft PR.
- Adds content-based duplicate suppression to avoid recreating identical automation PRs.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+154
to
+160
| publish: | ||
| needs: prepare | ||
| if: >- | ||
| needs.prepare.outputs.needs_remediation == 'true' && | ||
| github.event_name != 'pull_request' && | ||
| github.repository == 'apache/zeppelin' | ||
| runs-on: ubuntu-24.04 |
Member
Author
|
@tbonelee @voidmatcha How about this idea? 🙏 |
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.
What is this PR for?
Add a daily and manually triggered workflow that detects high/critical
npm auditfailures inzeppelin-react.When a lockfile-only fix is available, the workflow:
zeppelin-react/package-lock.json;It never uses
npm audit fix --force, pushes directly tomaster, or merges automatically.What type of PR is it?
Improvement
What is the Jira issue?
N/A
How should this be tested?
preparejob passed on this PR.