Repository navigation
v0.5.1 — GitHub Actions composite-action reliability fixes - #6
Merged
Merged
Conversation
…it-code ordering, SHA support, npm ci Three real defects found by external-repo CI runs and code audit: 1. fail-on-new input was declared but its env var never read — the gate always used --fail-on new regardless of the user's setting. Now: fail-on-new=true → compare --fail-on new (gate on new findings); fail-on-new=false → compare without the flag (report only); invalid values → explicit error. 2. Scan step exited 1 when findings existed, causing GitHub Actions to skip the gate step. Now the scan step completes on exit 0 or 1 (recording the verdict), and only exits 2 for environment errors. A new Final CI decision step evaluates scan verdict + gate conclusion in priority order (error > gate > findings > clean) and produces the final exit code. 3. reprocase-ref claimed to support tags, branches and commit SHAs but used git clone --branch which fails for SHAs. Now: --branch first, then fallback to full clone + git checkout for SHAs, with an explicit error for unresolvable refs (no silent version fallback). The checked-out commit is verified and reported. Also: npm install → npm ci for lockfile-reproducible installs; hashFiles guard prevents empty artifact upload; invalid fail-on-new values produce an explicit error. 18 new tests (10 action structure + 8 gate semantics). 142/142 tests green, npm audit 0.
…e flow combinations
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.
Summary
Three real defects in the composite action found by external-repo CI runs and code audit:
Also: npm install → npm ci, hashFiles artifact guard, 18 new regression tests (action structure + gate semantics).
External acceptance
reprocase-actions-demo: clean green, incident red, fix green, honest-error green.
Verification
160/160 tests, npm audit 0, docs-CLI consistency guard 7/7.