ben-ranford/Scan with Lopper

Run Lopper dependency-surface analysis in GitHub Actions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 12, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: ben-ranford/lopper@bc52d5718e386309506b2c2e61c2d9279423fdcc # v1.8.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
versionLopper CLI release to install. Use action to match an action tag when possible, latest for the newest stable release, a floating tag such as v1 or v1.8, or a concrete tag such as v1.8.0.noaction
github-tokenOptional token used when resolving and downloading GitHub release assets.no""
repoRepository path to analyse.no.
modeExecution mode: analyse, dashboard, or pr-review. dashboard requires action-dashboard-mode-preview; pr-review requires dependency-surface-pr-review-preview.noanalyse
dashboard-configDashboard config file path for dashboard mode.no""
dashboard-reposComma-separated repository paths for dashboard mode.no""
dashboard-formatDashboard output format: json, csv, html, slack-summary, teams-summary, or cyclonedx-json.no""
dashboard-outputDashboard output file path.no""
pr-baseFull immutable base commit SHA for pr-review mode.no""
pr-headFull immutable head commit SHA for pr-review mode.no""
pr-review-formatPR review output format: markdown or json.nomarkdown
pr-review-outputPR review output file path.no""
pr-fail-on-regressionFail pr-review mode when new regression rows are detected.nofalse
pr-material-waste-bytesEstimated unused byte increase required for a material PR regression.no1024
pr-max-rowsMaximum Markdown rows per PR review section.no20
dependencyOptional single dependency target. When set, top is ignored.no""
topNumber of top dependencies to analyse when dependency is not set.no
languageLanguage adapter to use, such as auto, all, js-ts, python, go, rust, dotnet, swift, dart, or powershell. Defaults to all for analyse and pr-review, and auto for dashboard.no""
scope-modeAnalysis scope mode: repo, package, or changed-packages.no
formatOutput format: table, csv, json, sarif, pr-comment, or cyclonedx-json. cyclonedx-json requires enable-feature=sbom-attestation-exports-preview.notable
outputOptional output file path. Use - or leave blank to write to stdout.no""
baselineBaseline JSON report path for comparison.no""
baseline-storeBaseline snapshot directory.no""
baseline-keyBaseline snapshot key for comparison.no""
baseline-labelLabel key to use when saving a baseline snapshot.no""
save-baselineSave the current run as an immutable baseline snapshot.nofalse
configOptional Lopper config file path.no""
includeComma-separated include path globs.no""
excludeComma-separated exclude path globs.no""
runtime-profileConditional exports runtime profile.nonode-import
runtime-traceRuntime trace file path.no""
runtime-test-commandOptional allowlisted test command to run with runtime tracing, including stable pytest, unittest, and uv runner profiles.no""
advisory-sourceLocal JSON or YAML advisory file to attach vulnerability findings without network access. Requires enable-feature=reachability-vulnerability-prioritization-preview.no""
cacheEnable the incremental analysis cache.notrue
cache-pathOptional analysis cache directory path.no""
cache-readonlyRead cache entries but do not write misses.nofalse
threshold-fail-on-increaseFail when waste increase is greater than this percent. Use 0 for strict no-regression gating.no""
threshold-low-confidence-warningWarn in all-language mode when adapter confidence is below this percent.no""
threshold-min-usage-percentMinimum used export percent before low-usage recommendations are emitted.no""
threshold-max-uncertain-importsFail when unresolved dynamic import/require usage count exceeds this threshold.no""
threshold-reachable-vulnerability-priorityFail when reachable local advisory findings meet or exceed this reachability-weighted priority: off, low, medium, high, or critical. Requires enable-feature=reachability-vulnerability-prioritization-preview when above off.no""
lockfile-drift-policyLockfile drift policy: off, warn, or fail.no""
license-denyComma-separated denied SPDX identifiers.no""
license-fail-on-denyFail when denied licenses are detected.nofalse
license-provenance-registryInclude registry provenance heuristics for JS/TS dependencies.nofalse
enable-featureComma-separated feature flag names or codes to enable.no""
disable-featureComma-separated feature flag names or codes to disable.no""
namedescription
report-pathOutput report path when the output input points at a file.
lopper-versionInstalled Lopper version output from lopper --version.
resolved-versionResolved release tag used for the installed Lopper CLI.
binary-pathInstalled Lopper binary path.