Repository navigation
Conversation
e18e dependency analysisNo dependency warnings found. |
checks now return a structured result (check name, message and whether it breached) instead of pushing strings, so the action can fail on a chosen set of checks after the comment or artifact is written. closes e18e#168
maksimgm
force-pushed
the
feat/fail-on
branch
from
November 25, 2026 04:59
96128b7 to
eee9931
Compare
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.
closes #168
adds a
fail-oninput that takes a comma list of checks (dependency-count,dependency-size,duplicates,provenance,license,install-scripts,bundle-size,replacements). if any of them warn, the action fails after the comment or artifact is written, so the report still shows up on the pr. unknown names fail straight away with the list of valid onesto make that work the
scanFor*checks return a{check, message, breached}result instead of pushing intomessages. the reports themselves are unchanged (snapshots only gained the wrapper). size decreases and the always-on reports with a threshold of-1arebreached: false, so they never fail itper your comment on the issue, the artifact recipes now upload the artifact and run the comment workflow when the analyze run fails too
tested the built action in artifact mode on a scratch repo: no
fail-onpasses,fail-on: dependency-count, replacementsexits 1 with the artifact written,fail-on: licensewith no license warning passes