You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Rust toolchain](#rust-toolchain) | `rust-toolchain` | Not applicable | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} | Not applicable | Not applicable |
@@ -183,6 +186,30 @@ pnpm is supported for {% data variables.product.prodname_dependabot_version_upda
183
186
184
187
The PEP 621 `project` section isn't currently supported for `poetry`.
185
188
189
+
{% ifversion dependabot-pre-commit-support %}
190
+
191
+
### pre-commit
192
+
193
+
{% data variables.product.prodname_dependabot %} can update hook revisions in `.pre-commit-config.yaml` files. When a hook pins a specific commit SHA, {% data variables.product.prodname_dependabot %} resolves the latest matching tag and updates the `rev` value accordingly.
194
+
195
+
You can use a `# frozen:` comment after the `rev` value to pin a hook to a particular version or version prefix. {% data variables.product.prodname_dependabot %} uses this comment to determine whether an update is needed and which tag to resolve.
196
+
197
+
| Scenario | Behavior |
198
+
|---|---|
199
+
|`rev: <sha> # frozen: 7.3.0` and 7.3.0 is the latest version | No update. The dependency is already current. |
200
+
|`rev: <sha> # frozen: 7.3.0` and 8.0.0 has been released | Updated to the SHA for the `8.0.0` tag. The comment is updated to `# frozen: 8.0.0`. |
201
+
|`rev: <sha> # frozen: v1` and `v1.43.5` is the latest `v1.x` release | Updated to the SHA for the `v1.43.5` tag. The comment is updated to `# frozen: v1.43.5`. |
202
+
|`rev: <sha>` with no `# frozen:` comment | Updated to the HEAD SHA of the default branch. |
203
+
204
+
In addition to updating hook revisions, {% data variables.product.prodname_dependabot %} can update `additional_dependencies` for hooks that use the following languages: Python, Node, Go, Rust, Ruby and Dart.
205
+
206
+
Private registry support uses git registries. You can configure access for private git repositories by specifying a git registry in your `dependabot.yml` file. For more information, see [AUTOTITLE](/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot#git).
207
+
208
+
> [!NOTE]
209
+
> Private registries are not supported for `additional_dependencies`.
0 commit comments