Skip to content

ci(workflows): enforce the zizmor workflow scan on mparticle-workflows - #105

Merged
jamesnrokt merged 1 commit into
mainfrom
ci/enforce-the-zizmor-workflow-scan-on-mparticle
Nov 16, 2026
Merged

jamesnrokt merged 1 commit into
mainfrom
ci/enforce-the-zizmor-workflow-scan-on-mparticle

Conversation

@jamesnrokt

Copy link
Copy Markdown
Contributor

Background

  • The workflows in this repository did not run an enforced zizmor scan, so GitHub Actions security findings (unpinned actions, broad permissions, persisted credentials, expressions interpolated into shell) could land without failing CI. This resolves every zizmor 1.32.0 finding and enforces the scan.

What Has Changed

  • Pin all third-party actions across the 24 existing workflows to commit hashes, and replace the blocked issue-helper action in the Jira workflows with gh CLI commands and labels read from the event payload.
  • Add explicit least-privilege workflow and job permissions, set persist-credentials: false on non-pushing checkouts, and drop unused secrets: inherit on the Android kit regression callers.
  • Pass inputs, step outputs and tokens to shell scripts through environment variables instead of inline expressions.
  • Keep the Dependabot automerge and PR-number-saving workflows for existing @main callers, checking the pull request author and run actor rather than a spoofable field.
  • Use relative paths for local reusable workflow calls, document each # zizmor: ignore[...] suppression in place, and add a 7-day Dependabot cooldown.
  • Add zizmor.yml, pinned to 1.32.0, with continue-on-error omitted so findings fail the check.

Screenshots/Video

  • Not applicable: CI configuration only.

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • Merging publishes no SDK release, but repositories that call these reusable workflows at @main pick up the new permissions and relative uses: paths on their next run; revert the pull request to restore the previous definitions.
  • Main risk: a job lacks a permission or variable it needs and fails on its next run. Jobs that push use the release bot token rather than GITHUB_TOKEN; the automerge and main-rebase jobs keep GITHUB_TOKEN write grants. Only the branch, title and zizmor checks run on this pull request; the release, automerge, Jira and reusable SDK workflows are first exercised by caller repositories after merge.
  • Supersedes ci: add zizmor security scan #104. Written by an automated coding agent; a code owner reviews it on this pull request; 444 lines added, 183 removed, in 26 files.

@jamesnrokt jamesnrokt added the promoted Opened from Rokt's internal review process label Nov 16, 2026 — with Rokt Releases
@jamesnrokt
jamesnrokt merged commit 24cbccf into main Nov 16, 2026
4 checks passed
@jamesnrokt
jamesnrokt deleted the ci/enforce-the-zizmor-workflow-scan-on-mparticle branch November 16, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

promoted Opened from Rokt's internal review process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants