Skip to content

ci: Resolve Zizmor static security audit findings in GitHub Actions - #70

Merged
vkarampudi merged 2 commits into
tensorflow:masterfrom
vkarampudi:fix-zizmor-security
Aug 14, 2026
Merged

ci: Resolve Zizmor static security audit findings in GitHub Actions#70
vkarampudi merged 2 commits into
tensorflow:masterfrom
vkarampudi:fix-zizmor-security

Conversation

@vkarampudi

Copy link
Copy Markdown
Contributor

Summary of Changes:

Resolves static security analysis findings identified by Zizmor across the CI/CD workflows:

  • Pin Action References: Pinned all GitHub Action uses: steps (actions/checkout, actions/setup-python, actions/upload-artifact, actions/download-artifact, pre-commit/action, pypa/gh-action-pypi-publish) to immutable 40-character commit SHAs.
  • Explicit Permissions: Added explicit top-level permissions: { contents: read } to ci-lint.yml, test.yml, and wheels.yml to adhere to the principle of least privilege.
  • Credential Persistence: Added persist-credentials: false to all actions/checkout steps to prevent token leakage into later workflow steps.

Testing:

Validated locally with zizmor:
0 High, 0 Medium, 0 Low findings remaining (Clean scan).

- Pin GitHub Action references to immutable commit SHAs
- Add explicit 'permissions: contents: read' blocks
- Set 'persist-credentials: false' on checkout steps

@rwitcher rwitcher left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarampudi
vkarampudi merged commit f27894e into tensorflow:master Aug 14, 2026
25 checks passed
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.

2 participants