Skip to content

Harden CI workflows#7

Merged
rasuvaeff merged 1 commit into
masterfrom
ci/harden-workflows
Jun 20, 2026
Merged

Harden CI workflows#7
rasuvaeff merged 1 commit into
masterfrom
ci/harden-workflows

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

Summary

Supply-chain hardening of GitHub Actions workflows, applied uniformly across the rasuvaeff/* monorepo.

Changes per workflow (build.yml, static-analysis.yml— and foryii3-seoalsocode-quality.yml, security.yml`):

Change Audit (zizmor) Severity
Pin every uses: to a 40-char commit SHA with # vN trailing comment unpinned-uses high
Add permissions: { contents: read } at workflow level excessive-permissions medium
Add persist-credentials: false to every actions/checkout step artipacked low

Pinned SHAs (resolved via gh api, annotated tags dereferenced to commits):

  • actions/checkout@v434e114876b0b11c390a56381ad16ebd13914f8d5
  • shivammathur/setup-php@v2f3e473d116dcccaddc5834248c87452386958240
  • actions/cache@v40057852bfaa89a56745cba8c7296529d2fc39830
  • SonarSource/sonarcloud-github-action@masterffc3010689be73b8e5ae0c57ce35968afd7909e8 (v5) — yii3-seo only

Verification

zizmor --persona=auditor .github/ on representative packages reports No findings after the change. SHA lengths verified at 40 hex chars; existence re-checked via gh api /repos/<o>/<r>/git/commits/<sha>.

Follow-ups (out of scope, separate PRs)

  • clickhouse-toolkit: unpinned-images for the clickhouse/clickhouse-server:24.8 service container (needs digest pinning).
  • yii3-seo: SonarSource/sonarcloud-github-action is archived — migrate to sonar/sonarqube-scan-action. Also dependabot-cooldown and secrets-outside-env (SONAR_TOKEN) findings.

Pin all third-party actions to commit SHAs (supply-chain protection),
add explicit `permissions: { contents: read }` at workflow level,
and set `persist-credentials: false` on every checkout step.

Resolves zizmor findings: unpinned-uses, excessive-permissions, artipacked.
@rasuvaeff rasuvaeff merged commit b1a1773 into master Jun 20, 2026
7 checks passed
@rasuvaeff rasuvaeff deleted the ci/harden-workflows branch June 20, 2026 14:13
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.

1 participant