[GH-3011] Pin all pre-commit hooks to SHA for supply chain security#3082
Open
jbampton wants to merge 1 commit into
Open
[GH-3011] Pin all pre-commit hooks to SHA for supply chain security#3082jbampton wants to merge 1 commit into
jbampton wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens the repository’s pre-commit/prek supply-chain posture by pinning hook revisions to immutable commit SHAs (with # frozen: hints for Dependabot), while also updating the configured minimum prek version and a Prettier dependency.
Changes:
- Converted all third-party hook
revvalues from tags to full commit SHAs and added# frozen:version hints for Dependabot. - Switched the config’s minimum version gate from
minimum_pre_commit_versiontominimum_prek_version. - Bumped the local Prettier hook dependency from
prettier@3.8.3toprettier@3.8.4.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| python: python3 | ||
| node: 24.16.0 | ||
| minimum_pre_commit_version: '3.2.0' | ||
| minimum_prek_version: '0.3.4' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Did you read the Contributor Guide?
Is this PR related to a ticket?
[GH-XXX] my subject. Closes We need to pin to sha all pre-commit hooks for supply chain security #3011What changes were proposed in this PR?
Pinned all hooks to latest SHA for supply chain security.
Using prek now so set
minimum_prek_versionsimilar to Apache Airflow:https://github.com/apache/airflow/blob/b788d83d215ec9fe6b289c3021a726997ca3d8a3/.pre-commit-config.yaml#L19
Updated additional dependency version for Prettier
How was this patch tested?
With prek
Did this PR include necessary documentation updates?