chore(security): Pin pre-commit hooks by SHA, as it is immutable#902
chore(security): Pin pre-commit hooks by SHA, as it is immutable#902MaxymVlasov merged 3 commits intomasterfrom
Conversation
📝 WalkthroughSummary by CodeRabbit
Summary by CodeRabbit
WalkthroughThe Renovate configuration was updated to disable its pre-commit integration in favor of using Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Renovate
participant pre-commit.ci
User->>Renovate: Runs Renovate (pre-commit integration disabled)
Renovate--xpre-commit.ci: Does not manage pre-commit hooks
User->>pre-commit.ci: Uses pre-commit.ci freeze to lock hook versions
pre-commit.ci-->>User: Updates .pre-commit-config.yaml with frozen SHAs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Pull Request Overview
This PR aims to enhance the security posture by pinning pre-commit hooks to immutable SHA revisions. Key changes include updating the hook revisions in .pre-commit-config.yaml to specific commit SHAs and disabling automated pre-commit updates in the Renovate configuration.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .pre-commit-config.yaml | Updated hook revisions to SHA with frozen tags representing the intended versions. |
| .github/renovate.json5 | Disabled automated updates for pre-commit hooks to rely on pre-commit.ci freeze. |
Comments suppressed due to low confidence (2)
.pre-commit-config.yaml:46
- The frozen comment indicates v8.27.0, which is a version bump from the previous v8.26.0. Please confirm that this upgrade is intentional and update the documentation if needed.
rev: a248f9279b38aeff5bbd4c85cc6f15b64d27e794 # frozen: v8.27.0
.github/renovate.json5:18
- Disabling automated pre-commit updates here delegates control to pre-commit.ci freeze. Please ensure this aligns with the overall dependency update strategy.
"pre-commit": {
|
This PR is included in version 1.99.2 🎉 |
Pinned by
pre-commit autoupdate --freezeaspre-commitin Renovate currently does not support freezing style used bypre-commit