Repository navigation
Gate Scorecard and trufflehog reports, bootstrap cosign - #118
Merged
Merged
Conversation
Build a fresh command tree per call and read every setting flag, then environment variable, then default. Remove configkit and Viper. - Exit 2 for usage, IO, and decode errors and 3 for EPSS or KEV data errors. --audit only ignores threshold failures. - --log-level and --log-format on every command. --silent keeps warnings. - --format table|markdown|json on list, list-all, and validate. - validate gains --input-type (with stdin), --epss-url, and --kev-url. list-all gains --epss-filename and --epss-url. - One config encoder and decoder. config init indents, and unknown keys are reported as warnings. validate warns when there is no config. - Coverage thresholds over 1 are read as percents. - Fix the env var panics, the KEV file reading GATECHECK_EPSS_FILENAME, bundle create not truncating, bundle remove of a missing label exiting 0, and the case-sensitive Grype KEV compare. Fixes #73
OpenSSF Scorecard JSON and newline-delimited trufflehog JSON are report types for list, validate, and bundles. The scorecard section sets a minimum aggregate score and per-check minimums. The trufflehog section fails on any finding, or only on verified secrets. Secret values are never decoded. bootstrap --tools scorecard,trufflehog,cosign installs pinned scorecard 5.6.0, trufflehog 3.99.8, and cosign 3.1.4 with passthrough commands. Fixes #105
Deploying gatecheck-website with
|
| Latest commit: |
87590d7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fa870bbd.gatecheck-website.pages.dev |
| Branch Preview URL: | https://scorecard-trufflehog-cosign.gatecheck-website.pages.dev |
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.
This covers the "later" ideas in #105.
scorecard --format jsonis detected by content (scorecard.versionplus achecksarray). It works withlist,validate, and bundles. Thescorecardconfig section hasenabled,minScorefor the aggregate, and acheckslist of{name, minScore}. Inconclusive (-1) or missing checks are skipped with a warning.--jsonoutput is detected from its first line (one line is enough), and empty output falls back to the filename. Thetrufflehogsection haslimitEnabledandverifiedOnly. The decoder never readsRaw,RawV2,Redacted, orSecretParts, solistand the logs can't leak a secret. The fixture is real trufflehog 3.99.8 output on a made-up key, with those fields scrubbed anyway.bootstrap --tools cosigninstalls the raw binary (checked againstcosign_checksums.txt), andgatecheck cosignpasses cosign's exit status through, sogatecheck cosign verify/verify-blobis the gate.docs/bootstrap.mdhas examples. I did not add signature checks for gatecheck's own scanner downloads. Those still rely on the release checksums.bootstrap --tools scorecard,trufflehoginstalls pinned 5.6.0 and 3.99.8 (goreleaser tar.gz on every OS) with passthrough commands. All three are opt-in.Checked by hand: the real binary installed all three,
gatecheck trufflehog filesystemoutput was listed and gated, and the Scorecard fixture was listed and gated. I couldn't run Scorecard live, because it needs a GitHub token in this environment. Its fixture follows the documented v5 JSON shape.This is stacked on #117.
Fixes #105
🤖 Generated with Claude Code