Skip to content

Commit bc82062

Browse files
IRusclaude
authored andcommitted
Add Dependabot ecosystem support for Kotlin Toolchain
1 parent 831337b commit bc82062

4 files changed

Lines changed: 63 additions & 0 deletions

File tree

‎content/code-security/reference/supply-chain-security/dependabot-options-reference.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ The table below shows the package managers that support `cooldown`. The `default
258258
| {% ifversion dependabot-julia-support %} |
259259
| Julia | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
260260
| {% endif %} |
261+
| {% ifversion dependabot-kotlin-toolchain-support %} |
262+
| Kotlin Toolchain | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
263+
| {% endif %} |
261264
| Maven | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} |
262265
| {% ifversion dependabot-nix-support %} |
263266
| Nix flakes | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
@@ -309,8 +312,32 @@ If you need to use more than one block in the configuration file to define updat
309312

310313
## `enable-beta-ecosystems` {% octicon "versions" aria-label="Version updates only" height="24" %}
311314

315+
{% ifversion dependabot-kotlin-toolchain-support %}
316+
317+
By default, {% data variables.product.prodname_dependabot %} updates the dependency manifests and lock files only for fully supported ecosystems. Use the `enable-beta-ecosystems` flag to opt in to updates for ecosystems that are not yet generally available.
318+
319+
Ecosystems currently in {% data variables.release-phases.public_preview %}:
320+
321+
* Kotlin Toolchain (`kotlin-toolchain`)
322+
323+
```yaml copy
324+
# Configure an ecosystem in public preview
325+
326+
version: 2
327+
enable-beta-ecosystems: true
328+
updates:
329+
- package-ecosystem: "kotlin-toolchain"
330+
directory: "/"
331+
schedule:
332+
interval: "weekly"
333+
```
334+
335+
{% else %}
336+
312337
Not currently in use.
313338

339+
{% endif %}
340+
314341
## `groups` {% octicon "versions" aria-label="Version updates" height="24" %} {% octicon "shield-check" aria-label="Security updates" height="24" %}
315342

316343
Define rules to create one or more sets of dependencies managed by a package manager, to group updates into fewer, targeted pull requests. For examples, see [AUTOTITLE](/code-security/tutorials/secure-your-dependencies/optimizing-pr-creation-version-updates).
@@ -589,6 +616,9 @@ Package manager | YAML value | Supported versions |
589616
| {% data variables.product.prodname_actions %} | `github-actions` | Not applicable |
590617
| Go modules | `gomod` | v1 |
591618
| Gradle | `gradle` | Not applicable |
619+
| {% ifversion dependabot-kotlin-toolchain-support %} |
620+
| Kotlin Toolchain | `kotlin-toolchain` | >=v0.11 |
621+
| {% endif %} |
592622
| Maven | `maven` | Not applicable |
593623
| {% ifversion dependabot-nix-support %} |
594624
| Nix flakes | `nix` | Not applicable |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: https://github.com/dependabot/dependabot-core/pull/16203
2+
# Kotlin Toolchain support for Dependabot
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>3.22'

‎data/reusables/dependabot/dependabot-updates-supported-versioning-tags.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ The `dependabot.yml` file doesn't control the versioning tags that you can use,
4545
| {% ifversion dependabot-julia-support %} |
4646
| Julia | `julia` | Any SemVer prerelease identifier (commonly `rc`, `DEV`, `beta`) | `HTTP@1.10.0-rc1`, `Plots@2.0.0-DEV`, `DataFrames@1.6.0-beta.1` |
4747
| {% endif %} |
48+
| {% ifversion dependabot-kotlin-toolchain-support %} |
49+
| Kotlin Toolchain | `kotlin-toolchain` | `alpha`, `a`, `beta`, `b`, `milestone`, `m`, `rc`, `cr`, `snapshot`, `ga`, `final`, `release`, `sp` (case-insensitive) | `kotlin-toolchain@0.12.0-dev-4188`, `kotlinx-coroutines-core@1.10.0-RC`, `ktor-server-core@3.0.0-rc-1` |
50+
| {% endif %} |
4851
| {% ifversion dependabot-nix-support %} |
4952
| Nix | `nix` | None—tracks flake input commits (no versioning scheme) | `nixpkgs@a1b2c3d`, `devenv@e4f5a6b`, `flake-utils@c7d8e9f` |
5053
| {% endif %} |

‎data/reusables/dependabot/supported-package-managers.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ git submodule | `gitsubmodule` | Not applicable | {% octicon "check" aria-lab
2929
[{% data variables.product.prodname_actions %}](#github-actions) | `github-actions` | Not applicable | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | Not applicable |
3030
Go modules | `gomod` | v1 | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "check" aria-label="Supported" %} |
3131
[Gradle](#gradle) | `gradle` | Not applicable | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
32+
| {% ifversion dependabot-kotlin-toolchain-support %} |
33+
[Kotlin Toolchain](#kotlin-toolchain) ({% data variables.release-phases.public_preview %}) | `kotlin-toolchain` | >=v0.11 | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
34+
| {% endif %} |
3235
[Maven](#maven) | `maven` | Not applicable | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} |
3336
| {% ifversion dependabot-nix-support %} |
3437
[Nix](#nix) | `nix` | Not applicable | {% octicon "check" aria-label="Supported" %} | {% octicon "x" aria-label="Not supported" %} | {% octicon "x" aria-label="Not supported" %} | Not applicable | Not applicable |
@@ -163,6 +166,27 @@ The `helm-registry` type only supports HTTP Basic Auth and does not support OCI-
163166

164167
When configuring {% data variables.product.prodname_dependabot %} for Helm charts, it will also automatically update the Docker images referenced within those charts, ensuring that both the chart versions and their contained images stay up to date.
165168

169+
{% ifversion dependabot-kotlin-toolchain-support %}
170+
171+
### Kotlin Toolchain
172+
173+
{% data variables.product.prodname_dependabot %} support for Kotlin Toolchain is in {% data variables.release-phases.public_preview %}. To enable it, set `enable-beta-ecosystems: true` in your `dependabot.yml` file. For more information, see [`enable-beta-ecosystems`](/code-security/reference/supply-chain-security/dependabot-options-reference#enable-beta-ecosystems-).
174+
175+
{% data variables.product.prodname_dependabot %} reads the toolchain version from the `kotlin` and `kotlin.bat` wrapper scripts in your project. Versions 0.11 and later are supported.
176+
177+
{% data variables.product.prodname_dependabot %} updates Maven dependencies in the following files without running the toolchain:
178+
179+
* `project.yaml`
180+
* `module.yaml`
181+
* `*.module-template.yaml`
182+
* `libs.versions.toml` or `gradle/libs.versions.toml`
183+
184+
{% data variables.product.prodname_dependabot %} also updates the `kotlin` and `kotlin.bat` wrapper scripts when a new toolchain version is available. Kotlin Toolchain projects don't use a lockfile.
185+
186+
Private registry support uses the `maven-repository` type, including `replaces-base`. For more information, see `maven-repository` in [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#maven-repository).
187+
188+
{% endif %}
189+
166190
### Maven
167191

168192
{% data variables.product.prodname_dependabot %} doesn't run Maven but supports updates to `pom.xml` files.

0 commit comments

Comments
 (0)