Skip to content

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

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

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

Conversation

@vkarampudi

Copy link
Copy Markdown
Contributor

Description

This PR resolves all static security audit findings reported by Zizmor across GitHub Actions workflows in tfx-bsl:

  1. Explicit Permissions (Principle of Least Privilege):

    • Added permissions: contents: read across workflows (build.yml, ci-lint.yml, nightly.yml) to prevent automatic full repository write access.
  2. Immutable Action Pinning:

    • Pinned all actions (actions/checkout, pypa/cibuildwheel, actions/upload-artifact, actions/download-artifact, actions/setup-python, actions/cache, pre-commit/action, pypa/gh-action-pypi-publish) to commit SHAs with version comments.
  3. Disabled Credential Persistence:

    • Added persist-credentials: false across all actions/checkout steps.
  4. Security Suppressions:

    • Added # zizmor: ignore[use-trusted-publishing] to preserve PyPI token publishing.

Verification

Validated locally with Zizmor 1.29:

  • 0 High, 0 Medium, 0 Low findings remaining.

@vkarampudi vkarampudi changed the title ci: resolve Zizmor static security audit findings in GitHub Actions workflows ci: Resolve Zizmor static security audit findings in GitHub Actions workflows Aug 13, 2026

@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 d5e3e09 into tensorflow:master Aug 14, 2026
18 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