GitHub Action
- uses: figueiredoluiz/vitest-dedup@vX.Y.Z with: path: . version: X.Y.Z threshold: "5"Replace X.Y.Z with a released version; the README carries the
current pin.
What the Action does
Section titled “What the Action does”The Action downloads the release binary for the runner’s platform, verifies its SHA-256 against the
published checksum and, with gh, that its build provenance attestation comes from this
repository’s release workflow at the version’s tag (v0.1.0, built from main, is checked against
the workflow only), and only then runs it.
versionis required and exact, so the workflow pins the code it runs.token(defaultgithub.token) is passed toghalone.- When
ghis missing, or has no credentials at all, the attestation check is skipped with a warning. A failed verification, including a rejected token, always fails the step.
Inputs
Section titled “Inputs”The inputs are path, config, threshold, reporters, output, rule, globals,
no-metrics, fail-on-incomplete, baseline, fail-on-new, changed-since, max-memory,
no-memory-cap, version, and token.
pathis the positional argument,versionselects the release binary, andtokenauthenticates the attestation check.- Each of the others maps to the flag of the same name.
ruleaccepts several overrides separated by newlines or commas.- The JSON reporter is always enabled so the outputs below can be read.
--update-baselineis deliberately not an input: rewriting a committed record of accepted debt is not a CI gate operation.changed-sinceneedsfetch-depth: 0on the checkout.
Outputs
Section titled “Outputs”| Output | Description |
|---|---|
exit-code |
Native exit code (0, 1, or 2) |
findings |
Total findings, baselined or not |
errors |
Error-severity findings |
warnings |
Warning-severity findings |
tests-analyzed |
Tests extracted |
files-analyzed |
Files parsed |
incomplete |
"true" when the run could not fully cover the corpus |
baselined |
Findings the baseline accounted for |
new-findings |
Findings absent from the baseline |
json-report |
Path to the JSON report |
html-report |
Path to the HTML report, when the html reporter was selected |
attestation |
verified, or unavailable when only the checksum could be checked |
Back to the documentation index.