Skip to content

chore: harden cascade repo against OSSF Scorecard findings - #252

Merged
joshua-temple merged 1 commit into
mainfrom
chore/scorecard-repo-hardening
Jun 22, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
chore/scorecard-repo-hardening

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Repo-only Scorecard hardening (no generator-default change; PR #251 shipped the generator least-privilege permissions).

  • Set pin_mode: sha in this repo's own manifest and regenerate, SHA-pinning actions/checkout (verified @df4cb1c = v6.0.3) in orchestrate and promote (PinnedDependencies). The repo's own setup-cli action stays version-pinned by cli_version.
  • Digest-pin both Dockerfile base images; docker build verified against the pinned digests (PinnedDependencies).
  • Add least-privilege permissions to the hand-authored release.yaml and hotfix.yaml: top-level contents: read, write only on the jobs that cut a release or push to trunk (TokenPermissions).
  • Bump golang.org/x/crypto to v0.52.0 in the e2e module to clear the reachable ssh advisories govulncheck confirmed; the remaining alert entries are not-called or std-lib and are handled by dismissal.
  • Add a FuzzLoadManifest native fuzz target on the manifest parse-and-validate path (Fuzzing).

Verification: go build/test ./... (1684 pass), golangci-lint clean, e2e build/vet clean, cascade verify clean, docker build succeeds on the pinned bases. schema_version unchanged.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple enabled auto-merge (squash) June 22, 2026 20:14
@joshua-temple
joshua-temple merged commit 1d1203f into main Jun 22, 2026
13 checks passed
@joshua-temple joshua-temple added the chore Maintenance, tooling, or dependency updates with no production code change label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, tooling, or dependency updates with no production code change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant