Repository navigation
ci(security): hardening — provenance, scanning, workflow lockdown - #122
Merged
Merged
Conversation
- Pin ruby/setup-ruby to a commit digest (last unpinned action) - Set persist-credentials: false on all checkouts (zizmor artipacked) - Move pages/release permissions to job level (zizmor excessive-permissions) - Disable Go build cache in the release job (zizmor cache-poisoning) - Route Jekyll base_path through an env var (zizmor template-injection) - Attest build provenance for release tarballs and checksums.txt - Run the release job in a 'release' environment (tag-restricted secrets) - Add govulncheck to CI plus a weekly scheduled run - Add dependency-review job on pull requests - Add SECURITY.md with private reporting and release verification docs
Run the same scan twice on purpose: the exit-code step in 'check' gates merges (SARIF mode never fails the build), while the new govulncheck-sarif job uploads findings to the Security tab for alert lifecycle and emails — so the weekly scheduled run surfaces new advisories as alerts instead of only a failed-run notification.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
ryanlewis
added a commit
that referenced
this pull request
Aug 8, 2026
Closes the loop on the attestations shipped in #122 — the installer now consumes them. - `install.sh` runs `gh attestation verify` on the downloaded tarball when `gh` is available and logged in - **Failed verification is fatal** (refuses to install; `SKIP_ATTESTATION=1` to bypass) - Missing attestation (releases ≤ v0.5.0, which predate #122) warns and continues - gh absent or logged out: notes and continues — checksum verification has already passed by then - README documents the automatic check and the manual `gh attestation verify` command Tested against the live v0.5.0 release: warn-and-install path, skip path, and shellcheck-clean. The fatal path will be exercised for real once v0.5.1 ships with attestations.
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.
Implements the free tier of the security hardening checklist. Rebased over #114–#121, which landed some of it in parallel (digest updates, read-only default token, harden-runner egress audit).
Workflow changes
checksums.txtnow get build provenance viaactions/attest-build-provenance; verify withgh attestation verify <tarball> -R ryanlewis/things-clireleaseenvironment (tag-restricted via deployment branch policy) so release secrets are never exposed to non-tag runscheck— fails CI and blocks merges on reachable vulnerabilitiesgovulncheck-sarifjob — same scan uploaded to the Security tab as code-scanning alerts (SARIF mode never fails the build, hence both); weeklyschedule:cron keeps alerts fresh between pushespersist-credentials: falseeverywhere, job-level permissions in pages/release, no Go cache in the release build, env-var indirection for the Jekyll base_pathAlso
SECURITY.md— private reporting via GitHub advisories + release verification docsApplied via API alongside this PR (already live)
protect-mainbranch ruleset: PR + greencheckrequired, no force-push/deletionprotect-release-tagstag ruleset onv*(admin bypass for/release)releaseenvironment, private vulnerability reporting, CodeQL default setup, required SHA pinning for actionsManual follow-ups (owner only)
HOMEBREW_TAP_GITHUB_TOKENinto thereleaseenvironment, delete the repo-level copygh attestation verifyon a published artifact