Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Pin tj-actions/changed-files to specific commit hash for security #913

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 19, 2025

Description

This PR addresses the security vulnerability in the tj-actions/changed-files GitHub Action (CVE-2025-30066). The action was recently compromised, potentially allowing attackers to leak secrets from repositories using this action.

Changes

  • Updated .github/workflows/mypy.yml to pin the tj-actions/changed-files action to a specific commit hash (b2d17c0ca3e4ff20b0ae4b84f93228223b51b8d5) instead of using a version tag (v46.0.1).

Security Impact

This change follows GitHub's recommended best practice of pinning actions to specific commit hashes rather than version tags to mitigate against supply chain attacks. The commit hash corresponds to a verified safe version of the action.

References

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.

0 participants