Skip to content

[M0.2] CI and security workflows - #8

Merged
samuelmbabhazi merged 4 commits into
mainfrom
feat/m0.2-ci-security-workflows
Nov 3, 2026
Merged

samuelmbabhazi merged 4 commits into
mainfrom
feat/m0.2-ci-security-workflows

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

Task

[M0.2] CI and security workflows. Closes #2

What changed

  • Every third-party GitHub Action in the five workflows is pinned to a full commit SHA, with the release version in a trailing comment. Latest stable releases were used (checkout v7.0.1, setup-node v7.1.0, setup-go v7.0.0, pnpm/action-setup v6.1.0, nx-set-shas v5.1.0, golangci-lint-action v9.3.0, buf-action v1.6.0, codeql-action v4.39.1, cosign-installer v4.1.2, sbom-action v0.24.3, goreleaser-action v7.3.0, attest-build-provenance v4.2.2, docker actions v4/v6/v7, trivy-action v0.36.0).
  • securego/gosec@master replaced by the v2.30.0 release commit.
  • Tool images pinned to digests: semgrep/semgrep:1.183.0, ghcr.io/gitleaks/gitleaks:v8.30.1, postgres:17 (CI service).
  • golangci-lint version in CI is v2.15, matching the local toolchain and .golangci.yml (config version 2).
  • New actionlint job in the security workflow (pinned rhysd/actionlint:1.7.12 image).
  • Renovate: docker:pinDigests so image digests stay maintained like action SHAs (helpers:pinGitHubActionDigests was already on).
  • docs/GITHUB_SETUP.md section 5 lists actionlint among required checks; M0.2 ticked in the plan.

Why

THREAT_MODEL requires all actions and tool images to be pinned after the March 2026 trivy-action compromise (CVE-2026-33634). Semgrep flagged 46 mutable action tags on the M0.1 PR; this PR removes them.

How it was tested

  • actionlint passes locally on all five workflows.
  • prettier --check . clean.
  • CI on this PR: all checks from GITHUB_SETUP section 5 must be green, including Semgrep.
  • release.yml is only validated by actionlint here; its first dry run is task M8.2.

Security considerations

Pure supply-chain hardening. No runtime code touched. Each SHA was resolved from the upstream repository's release tag through the GitHub API at the time of this PR.

Checklist

  • Acceptance criteria from docs/PLAN.md are met and the task is ticked
  • Lint, TS tests, Go tests pass (unchanged code)
  • Tests: not applicable (workflow configuration), actionlint added as a check
  • No new shell invocation and no new secret exposure path
  • Audit events: not applicable
  • GITHUB_SETUP updated

@samuelmbabhazi
samuelmbabhazi merged commit 3c7fd7b into main Nov 3, 2026
10 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m0.2-ci-security-workflows branch November 3, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[M0.2] CI and security workflows

1 participant