Skip to content

ci: add path-aware job gating and zizmor security workflow - #12

Merged
rasuvaeff merged 2 commits into
masterfrom
ci/workflow-hardening
Aug 3, 2026
Merged

ci: add path-aware job gating and zizmor security workflow#12
rasuvaeff merged 2 commits into
masterfrom
ci/workflow-hardening

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

Adds a changes gate job to build.yml/static-analysis.yml so docs-only PRs skip heavy CI jobs without leaving required checks stuck in Pending. Adds .github/workflows/zizmor.yml (zizmor --persona=auditor on every workflow change). Also fixes two pre-existing findings so the new zizmor job starts clean: release.yml's undocumented-permissions comment moved inline, and a 7-day cooldown added to dependabot.yml.

Rolled out from the shared templates/ in the rasuvaeff packages monorepo. Verified locally: YAML parses, zizmor --persona=auditor .github/ reports no findings.

- build.yml / static-analysis.yml: add a 'changes' gate job; heavy jobs
  now carry needs/if on it so docs-only changes skip them while required
  checks still resolve (skipped, not pending).
- zizmor.yml: new job, SHA-pinned zizmorcore/zizmor-action v0.6.2,
  persona auditor, advanced-security disabled, PR/push-triggered on
  .github/**/*.yml changes.
- release.yml: move the contents:write permission comment inline so
  zizmor's undocumented-permissions audit recognizes it.
- dependabot.yml: add a 7-day cooldown per ecosystem (zizmor's
  dependabot-cooldown auto-fix) so bumps aren't applied same-day.
A skipped matrix job posts one check run under its unexpanded name
template ("PHP ${{ matrix.php }}"), not per-version names, so the
required PHP 8.3/8.4/8.5 checks never resolve and the PR stays BLOCKED
forever. Confirmed live on bulkhead (same shape PR).
@rasuvaeff
rasuvaeff merged commit d7d14b8 into master Aug 3, 2026
10 checks passed
@rasuvaeff
rasuvaeff deleted the ci/workflow-hardening branch August 3, 2026 16:14
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