flanksource/Gavel

Run gavel test/lint, upload JSON artifact, and post a sticky PR comment with a summary and artifact link.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 5, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: flanksource/gavel@57fcbef5508082e83b6938e6f606c9c1dd06da6b # v0.0.48

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

namedescriptionrequireddefault
argsArguments passed to gavel (e.g. "test --lint" or "lint").notest --lint
working-directoryWorking directory in which gavel is executed.no.
versionGavel release to install. Use a semver tag (e.g. "v1.2.3"), "latest" to resolve the most recent release, or "source" to skip the release download path and rely on a gavel binary the caller has already put on PATH. nolatest
json-filePath (relative to working-directory) for the JSON artifact.nogavel-results.json
html-filePath (relative to working-directory) for the HTML artifact.nogavel-results.html
artifact-nameName of the uploaded artifact bundle.nogavel-results
commentPost / update a sticky PR comment with a summary and artifact link.notrue
comment-headerUnique marker that identifies the sticky comment across runs. Each distinct header keeps its own sticky comment on a PR. nogavel
github-tokenToken used to post the PR comment. Defaults to the workflow's GITHUB_TOKEN.no${{ github.token }}
fail-on-errorFail the action when gavel exits non-zero. Artifacts and the PR comment are still posted either way.notrue
namedescription
exit-codeExit code from the gavel invocation.
json-pathAbsolute path to the JSON artifact.
html-pathAbsolute path to the HTML artifact.
log-pathAbsolute path to the captured gavel stderr log (gavel.log). Always present, even when gavel crashes before writing JSON.