Commit Graph

3413 Commits

Author SHA1 Message Date
Mike Glazer 8557157edb feat: add support for go:generate directives in gomod (#39163)
* feat: add support for go:generate directives in gomod

This change adds a `goGenerate` postUpdateOption which enables
running `go generate ./...` after a dependency update.

Frequently when dependencies are brought in via tools or using
vendored code, and those dependencies are used for go:generate
instructions, we want to update the generated code after the dependency
has been updated.

Adding this as a postUpdateCommand wasn't really satisfactory since that
necessarily requires making a change in two spots (one in the allowed
commands, one in the postUpdateCommand). The other reason this was
undesirable was it would cause generate to run after every dependency
update, regardless of language.

* Updates

* Update fixes

* Self PR

* Fix docs link

* Trying to find the right path

* Fix

* Add deleted

* Fix

* And fix test...

* docs: tweak wording for `goGenerate`

* fix(types): don't default GlobalConfig

In a future change, `GlobalConfig.get` will correctly pull in the
defaults.

---------

Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-12-12 12:43:54 +00:00
Tim Neumann fab941c432 docs: Add note to pinDigestDisabled (#39707)
* docs: Add note to pinDigestDisabled

About not being able to revert docker:pinDigests

* docs: Update instruction for reverting pinDigests

* docs: Use md notes syntax

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* docs: indent whole note content

* chore: Remove markdownlint exception

* Revert "chore: Remove markdownlint exception"

This reverts commit 4b47c0b51d.

* docs: Fix description of pinDigestsDisabled

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* docs: Update note for pinDigestsDisabled

* Apply suggestions from code review

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
2025-12-12 10:03:55 +00:00
Elaman Imashov 01801296a7 fix(composer): do not use --minimal-changes with lockFileMaintenance and add postUpdateOption for not using it (#39824)
* Make --minimal-config configurable.

* Fix accidental remove.

* Remove composerMinimalChange from wrong file

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Add composerMinimalChanges to the renovateconfig interface.

* Use postupdateoptions.

* Remove the lock file before lock file maintenance upgrade.

* Import

* Flip to use composerNoMinimalChanges

* Minor fixes.

* Update artifacts.spec.ts

* Ignore tests for exception during lock file deletion (similar to npm, pnpm, etc)

* Move v8 comment.

* Remove composer lock removal

* docs(composer): reword `composerNoMinimalChanges`

* Fix Markdown formatting

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2025-12-11 11:17:28 +00:00
Felipe Santos d32eedbb10 feat(lookup): add maxMajorIncrement (#38854)
* feat(lookup): add `maxMajorIncrement`

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>

* Update lib/workers/repository/process/lookup/filter.ts

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

---------

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2025-12-10 22:32:05 +00:00
renovate[bot] f9f20b8da1 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.12 (main) (#39864)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.12

| datasource | package                       | from     | to       |
| ---------- | ----------------------------- | -------- | -------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.11 | 13.25.12 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 22:30:29 +00:00
Jamie Tanna 9bdffc4bae chore(presets): remove unnecessary whitespace (#39749)
As I'd missed that auto-formatters hadn't removed it.
2025-12-08 20:19:18 +00:00
renovate[bot] a7ee1293cc fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.11 (main) (#39855)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.11

| datasource | package                       | from    | to       |
| ---------- | ----------------------------- | ------- | -------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.8 | 13.25.11 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 05:26:23 +00:00
renovate[bot] bf1e58ca3d fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.8 (main) (#39826)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.8

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.7 | 13.25.8 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 07:45:26 +00:00
Jamie Tanna 2f41f4a0e2 fix(presets): correctly wrap helpers for golang.org/x packages in packageRules (#39790)
fix(presets): correctly wrap in `packageRules`

This was an unintentional breakage which means that this is incorrectly
applying across many usages.
2025-12-04 16:15:23 +00:00
Jellyfrog 16ea48d86d feat(gitlab): add support for autodiscovery repo sort/order (#39680) 2025-12-04 16:04:17 +00:00
renovate[bot] 2f817a233e fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.7 (main) (#39786)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.7

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.6 | 13.25.7 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 14:07:20 +00:00
Jamie Tanna 0d1b1a429e feat(presets): add helpers for golang.org/x packages (#39738)
When working with Go modules, the `golang.org/x` need to be treated
slightly differently, as they're hosted on Google's
`cs.opensource.google` infrastructure.

This adapts changes from [0] to:

- provide a linked `depName`, through to `pkg.go.dev` for the package
- provide a link through to `cs.opensource.google` for the given
  changelog

We also wire this in by default for `config:recommended` users.

[0]: https://code.forgejo.org/forgejo/renovate-config/src/commit/42f4672021ac9907141d34966f38f735be401734/go.json#L59-L73

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-12-03 20:34:30 +00:00
renovate[bot] c83f09f51c fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.6 (main) (#39772)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.6

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.5 | 13.25.6 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-03 18:27:33 +00:00
Jamie Tanna e084571a3d test(options): ensure that requiredIf is validated (#39705)
* test(options): ensure that `requiredIf` is validated

* perf: use a `Set`

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

---------

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-12-03 18:27:13 +00:00
Jamie Tanna 6005cbff29 fix(presets): correctly apply security:minimumReleaseAgeNpm for npm datasource (#39744)
As noted in #39610 and #39736, folks using Bun aren't having the
`minimumReleaseAgeNpm` applying to them.

Although the use of the top-level should work, it doesn't seem to be.

To be super explicit, we can migrate this to a `packageRule` instead.
2025-12-03 11:32:15 +00:00
Jamie Tanna 8c43bc2bd4 feat(presets): add helper to add changelog for digest updates for GitHub-based packages (#39650)
* feat(presets): add helper to add changelog for digest updates for GitHub-based packages

As noted in #39646, this would be useful to provide changelogs for
digest updates.

THis also wires it in by default for `config:recommended` users.

Via [0].

[0]: https://www.jvt.me/posts/2025/05/08/renovate-digest-changelog/

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* fix: simplify `matchSourceUrls`

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-12-03 11:10:20 +00:00
Jamie Tanna bff9741dfb test: move test into correct describe block (#39711)
As it was incorrectly under `validate globalOptions()`
2025-12-03 08:35:14 +00:00
Mike Glazer 77a59c3575 fix(allowedUnsafeExecutions): allow usagfe in the repository stage (#39704)
* Change stage to repository

* Should not be a globalOnly option

* Make it actually global only
2025-12-02 15:47:19 +00:00
Jamie Tanna 68572c9c71 chore: document the configuration types (#39698) 2025-12-02 13:42:57 +00:00
Mike Glazer ccb80f210d fix(allowedUnsafeExecutions): add to GlobalConfig options (#39700)
fix: Add `allowedUnsafeExecutions` to GlobalConfig OPTIONS

Missed when doing: #39573
2025-12-02 13:42:43 +00:00
Jamie Tanna 1d9c030614 chore: deprecate LegacyAdminConfig (#39696)
Until we've completed #39693.
2025-12-02 13:40:41 +00:00
Jamie Tanna e4b37fe4c8 feat(groups): revert markdownlint-cli2 group (#39699)
Revert "feat(groups): add `markdownlint-cli2` (#39569)"

This reverts commit b061408752.
2025-12-02 13:40:27 +00:00
Jamie Tanna e272cea10f chore: deprecate GlobalOnlyConfig (#39686)
As part of #39685, we can start by making it clear that this type is
deprecated.

We'll also rename this to make it clear that it's not to be used any
more.
2025-12-02 12:55:37 +00:00
Jamie Tanna 78e5977977 refactor(config/options): ensure global options are sorted (#39681) 2025-12-02 09:12:41 +00:00
Mike Glazer 4f9d970ad6 feat: Add allowedUnsafeExecution to the global configuration (#39573)
As part of #39458, we want to introduce a new self-hosetd configuration
item, to restrict what commands can be run as part of artifact upgrades.
2025-12-01 13:37:22 +00:00
renovate[bot] 441aacdf05 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.5 (main) (#39644)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.5

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.4 | 13.25.5 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 08:04:16 +00:00
Michael Kriese f212641b42 chore: lint fix (#39630) 2025-11-29 13:31:19 +00:00
Michael Kriese c641239c19 fix: use stricter types for renovate config (#39594)
* fix: use stricter types for renovate config

* fix: revert changes

* Apply suggestions from code review
2025-11-28 13:16:27 +00:00
Jamie Tanna e34af57483 refactor(splits): add a type for repository splits (#39589)
As part of future changes to add an OpenTelemetry attribute for the
splits, we should make sure that we have a common type for the splits,
which can be used with `addSplit`.

This refactors - with some help from GPT-4.1 - to use Vitest's timer
mocking.

This also requires a slight refactor of the implementation to test more
appropriately, without duplicate calls to `Date.now`.

Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>
2025-11-28 12:16:44 +00:00
RahulGautamSingh f6e29da3a3 fix(merge-confidence): move links into header (#39461)
* refactor(merge-confidence): remove links

* add default headings
2025-11-28 09:30:04 +00:00
Michael Kriese 32f73bb511 fix(platform): includeMirrors is a global only option (#39580) 2025-11-27 10:46:30 +00:00
Michael Kriese ad710ec6ea fix(platform): endpoint is a global only option (#39579) 2025-11-27 10:12:16 +00:00
Jamie Tanna b061408752 feat(groups): add markdownlint-cli2 (#39569)
As noted in #39540, this would be a better option to have inbuilt to
Renovate.

Given the fact that the packages have different versioning, this may
lead to Immortal PRs.
2025-11-26 17:40:48 +00:00
RahulGautamSingh 61c943c028 feat: prBodyHeadingDefinitons (#39460)
* feat: prBodyHeadingDefinitons

* Apply Suggestions

* Apply suggestions

* Update docs/usage/configuration-options.md

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

---------

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-11-26 10:15:41 +00:00
renovate[bot] 19a0c4d4d9 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.4 (main) (#39550)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.4

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.3 | 13.25.4 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-26 00:30:29 +00:00
renovate[bot] 58b0c63416 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.3 (main) (#39539)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.3

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.2 | 13.25.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-25 15:05:37 +00:00
Michael Kriese 050ac8d23b chore: better code coverage (#39518) 2025-11-25 15:01:54 +00:00
Jamie Tanna 58612b9f4a fix(presets): don't override prCreation on security:minimumReleaseAgeNpm (#39536)
Since rolling out the v42 Renovate release to the Mend Developer
Platform, we've been watching out for user reports for issues following
the addition of `security:minimumReleaseAgeNpm` in
`config:best-practices`.

In particular, two Discussions #39525 and #39477 are interesting cases
where a change from #39066 around `prCreation` has inadvertently caused
impact to PRs being created, as the CI needs to pass on the branch
before a PR is created (as intended by `prCreation=not-pending`).

However, these branches do not get CI running until there is a PR, which
means PRs will never be raised.

This partially reverts changes from #39066, #39116 and #38873, which
have been re-investigated since the reports.

Slightly surprising is the fact that the changes from #39066 have been
live on the Mend Developer Platform for a few weeks, but it wasn't
noticed until now, after the full rollout of v42.
2025-11-25 13:32:52 +00:00
renovate[bot] b5b26a9518 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.2 (main) (#39470)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.2

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.1 | 13.25.2 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-22 19:29:38 +00:00
renovate[bot] d035b2b668 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.1 (main) (#39451)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.1

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.25.0 | 13.25.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-21 14:29:09 +00:00
renovate[bot] 091ba9623c fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.0 (main) (#39435)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.25.0

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.24.3 | 13.25.0 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-20 17:28:22 +00:00
Jamie Tanna 02ea30ee52 fix(security:minimumReleaseAgeNpm): correctly opt-out lockFileMaintenance and replacement (#39409)
Otherwise this will apply to all usages of `minimumReleaseAge` across
all datasources.

This also wasn't actually opting out of the `minimumReleaseAge`, too.
2025-11-19 13:15:39 +00:00
Jamie Tanna 90e2e79bb6 fix(presets): allow replacements to not be governed by minimumReleaseAge (#39401)
Similar to changes in c1469ab79c, we also
need to make sure that `minimumReleaseAge` checks are not applying to
`replacement`s, given we do not set a release timestamp (#39400) on
replacement suggestions.

This will be in place until #39400, when we should be able to remove
this workaround.
2025-11-19 09:54:11 +00:00
Jamie Tanna c1469ab79c fix(presets): allow lockFileMaintenance to not be governed by minimumReleaseAge (#39354)
As noted in #39352, with Renovate 42's default enforcement of all npm
datasource package updates requiring `minimumReleaseAge` checks to
succeed, we're seeing that lock file maintenance updates are also being
blocked by this, despite Renovate itself delegating the logic to the
package manager.

We can opt-out the `lockFileMaintenance` updates from Minimum Release
Age checks, but make sure that we warn users of the risks.
2025-11-17 17:02:15 +00:00
Simon Berger cb1bd5a81b feat: allow configFileNames to be set through env (#39144)
* test: add failing test for reading configFileNames from env

* fix: move configFileNames handling to shared config parsing

* feat: allow configFileNames to be set through env

* fix: move unit test from file to index

* test: add test for setting configFileNames through cli

* fix: fix merge

* test: use multiple config file names in tests

* test: add a length check after adding custom filenames
2025-11-17 15:27:28 +00:00
renovate[bot] 808801dc8e fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.24.3 (main) (#39300)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.24.3

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.24.1 | 13.24.3 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-13 21:31:51 +00:00
Jamie Tanna b8429b1a7b test(allowedEnv): document use of regex (#39264) 2025-11-13 16:39:31 +00:00
Jamie Tanna 7092644446 fix(config/validation): don't allow global: presets outside of global configuration (#39211)
Right now, the `global:safeEnv` preset is the only "global" preset we
have, which allows providing a means to share common used global
self-hosting configuration.

In the future, we will introduce some new global presets, which will
have more (possibly dangerous) configuration that administrators will
need to make sure they are informed of the pros and cons before
enabling.

Before we make this available, we should make sure that there is no
possibility for a repo configuration to extend from `global:`, ensuring
that this can only be set in global configuration's `extends` or
`globalExtends`.

There is currently no gap in security allowing this to be bypassed, or a
way to leverage this right now without making a number of code changes
(to remove other sets of validation).

We mark this as an error to make sure that the repo cannot proceed.
2025-11-13 11:44:05 +00:00
Jamie Tanna 1bbc07951f fix(presets): remove npm preset file (#39282)
As we removed the only preset for npm in #38310, it's been noted that
the autogenerated docs page for this preset is now blank.

The simpler change is to remove the wiring in of the `npm:` presets.
2025-11-13 11:27:44 +00:00
renovate[bot] 909e043bd2 fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.24.1 (main) (#39218)
fix(deps): update ghcr.io/containerbase/sidecar docker tag to v13.24.1

| datasource | package                       | from    | to      |
| ---------- | ----------------------------- | ------- | ------- |
| docker     | ghcr.io/containerbase/sidecar | 13.24.0 | 13.24.1 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-10 22:31:53 +00:00