Skip to content

ci: use zizmor to harden actions workflows - #27560

Open
akshat-lakhera wants to merge 1 commit into
apache:mainfrom
akshat-lakhera:fix/26408-zizmor
Open

akshat-lakhera wants to merge 1 commit into
apache:mainfrom
akshat-lakhera:fix/26408-zizmor

Conversation

@akshat-lakhera

Copy link
Copy Markdown

Which issue does this PR close?

Closes #26408: [CI] Use zizmor to harden Actions workflows

Rationale for this change

Hardening GitHub Actions workflows prevents credential leakage, potential template injection vulnerabilities from pull request titles or inputs, and uses pinned container digests to avoid supply-chain risks.

What changes are included in this PR?

  • Add standalone zizmor static analysis workflow running on workflow modifications
  • Add zizmor configuration file with sensible baseline rules
  • Explicitly set persist-credentials to false on checkout steps across workflows
  • Pass dynamic expressions through environment variables in large files check and setup-builder action to prevent template injection
  • Migrate internal action references from ./ syntax to ${{ github.action_path }} syntax
  • Remove redundant checks write permission from extended workflow
  • Pin amd64/rust container images by immutable digest with version tag comments across extended and rust workflows
  • Add docker ecosystem to Dependabot configuration with cooldown settings

What is the testing strategy for this PR?

Tested zizmor analysis locally and verified all existing GitHub Actions workflows parse cleanly.

Are there any user-facing changes?

No user-facing changes; CI and workflow hardening only.

@github-actions github-actions Bot added the development-process Related to development process of DataFusion label Nov 18, 2026
Add standalone zizmor static analysis workflow and configuration to harden GitHub Actions workflows against security risks and misconfigurations.

Explicitly set persist-credentials to false across checkout steps to prevent leaking ambient repository credentials to downstream steps.
Fix template injection risks in large_files.yml and setup-builder action by passing expressions through environment variables rather than direct inline bash interpolation.
Remove redundant checks write permission from extended workflow.
Pin amd64/rust container images by immutable digest with version tag comments across extended and rust workflows.
Update dependabot configuration to include docker ecosystem with cooldown settings.
Configure zizmor to disable self-repository rule to preserve local composite action execution under export-ignore.

Closes apache#26408

Signed-off-by: Akshat Lakhera <akshatlnct2024@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Related to development process of DataFusion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use zizmor to harden actions workflows

1 participant