Commit Graph

83 Commits

Author SHA1 Message Date
Michael Kriese 21b15d5796 refactor(github-actions): simplify comunity action schema (#42784)
* refactor(github-actions): simplify comunity action schema

* refactor: rename function
2026-04-23 11:18:37 +00:00
Jamie Tanna 57d5fb3142 feat(manager/github-actions): use github-actions versioning by default (#42713)
As a re-attempt for #42331, and to support the migration for Actions
publishing Immutable Releases.
2026-04-21 11:45:52 +00:00
Jamie Tanna 413d94178d fix(versioning/github-actions): correctly handle major.minor and major (#42769)
* fix(versioning/github-actions): correctly handle `major.minor` and `major`

As part of the final set of changes needed to support Immutable Releases
with GitHub Actions and the `github-actions` versioning, we need to
modify how our versioning works to handle correctly surfacing the
shortest version available.

To make this more resilient, and help us test-drive the change, we'll
also add an integration test that:

- extracts from a GitHub Actions workflow
- performs a lookup (with mocked data)
- determines the available updates that would be proposed

This provides more confidence in the change itself, as well as
validates the intended changes.

This also moves `prefix` and `minLevel` to a single definition.

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! fix(versioning/github-actions): correctly handle `major.minor` and `major`

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! fix(versioning/github-actions): correctly handle `major.minor` and `major`

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-04-21 11:29:43 +00:00
Michael Kriese 70895fa838 feat(github-actions): add aquasecurity trivy actions (#42782) 2026-04-21 09:11:59 +00:00
Michael Kriese a277aadf88 refactor(github-actions): simplify community action schema (#42778)
* refactor(github-actions): simplify comunity action schema

* refactor rename function

* refactor: rename and remove default versionings
2026-04-21 08:32:54 +00:00
Trim21 9510d133df feat(github-actions): add support for jakebailey/pyright-action version option (#42744) 2026-04-19 14:08:15 +00:00
Jamie Tanna db64cc6de0 fix(manager/github-actions): revert recent changes (#42707)
* Revert "fix(manager/github-actions): override `versioning` for Actions with Immutable Tags (#42690)"

This reverts commit 1b0785bbe0.

* Revert "feat(replacements): migrate users to astral/setup-uv v8 (#42683)"

This reverts commit f5859c2671.

* Revert "feat(manager/github-actions): use `semver-partial` as default versioning (#42685)"

This reverts commit da04b8edac.
2026-04-17 07:10:18 +00:00
Jamie Tanna 1b0785bbe0 fix(manager/github-actions): override versioning for Actions with Immutable Tags (#42690)
The changes in da04b8edac mostly worked,
but given `astral-sh/setup-uv` is now using Immutable Tags it _must_ be
resolved as `versioning=semver`, to make sure that version updates are
correctly raised.

However, we can't treat it as `versioning=semver`, as that will then
fail to parse the current version correctly.

Instead, we must use a `regex` versioning scheme, which allows us to
optionally parse the minor and patch versions.

This allows `newVersion` to be pinned accordingly to SemVer, but does
not require previous versions to be so.

We can do this - for now - with an explicit allowlist.
2026-04-16 16:59:10 +00:00
Jamie Tanna da04b8edac feat(manager/github-actions): use semver-partial as default versioning (#42685)
As per #42331, we should migrate to using `semver-partial` for GitHub
Actions' tags versions, instead of `docker`.

This mirrors actual usage of the way that the ecosystem tags Action
versions, and also has the benefit of automagically migrating users of
Actions that have enabled Immutable Tags, which now must be a full
SemVer tagged version.

As we're now specifying the `versioning: semver-partial`, we don't need
to specify it in `pinGitHubActionDigestsToSemver`.
2026-04-16 10:59:58 +00:00
Jamie Tanna ea1e60e912 fix(github-actions): use correct datasource for Zizmor version (#42587)
As the Docker image needs to be published before we can use it in the
Action.
2026-04-13 09:18:50 +00:00
Shaan Majid 47807ea2a0 fix(manager/github-actions): disable updates for bare SHA pins without version comment (#42398)
* fix(manager/github-actions): disable updates for naked SHA pins without version comment

* docs(manager/github-actions): document disabled updates for bare SHA pins

* test(manager/github-actions): use single toEqual for version comment assertions

* docs(manager/github-actions): recommend version comment as primary fix for bare SHA pins

* fix(manager/github-actions): add skipReason for naked SHA pins

* docs(manager/github-actions): remove package rule example for re-enabling bare SHA updates

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

---------

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2026-04-07 15:34:28 +00:00
Jamie Tanna ff6b16a468 feat(github-actions): extract Zizmor version automagically (#42415) 2026-04-07 10:47:35 +00:00
Jamie Tanna 2d239d2cc1 docs: explicitly document depTypes each manager supports (#42142)
* docs: explicitly document `depTypes` each manager supports

A long-standing question we receive is "what `depTypes` can I match
against in my project".

Although the best recommendation we usually have is "check the
`packageFiles with updates" log line (as a very key log line for users),
we can go one step further and try and create a stronger contract.

To do this, I've used Claude Sonnet 4.6 to work through the codebase,
determine areas that a `depType` is set in a manager (statically or
dynamically) and generate a structured, typed, means to document how
they're used.

Through a few iterations of the process, and attempts at human-written
documentation, we've settled on:

- prioritising autogenerated documentation (for humans to read) to note
  what `depTypes` are known, and what they are
- `knownDepTypes`, to describe any known, static, `depType`s and their
  human-readable meaning
  - with the `prettyDepType`, if used
- `supportsDynamicDepTypesNote`, to add a Markdown note to the generated
  documentation

While here, we also:

- make sure to note this in the "adding a new package manager"
  documentation
- remove any hand-written references to `depTypes` in each manager's
  documentation page
- correct the Gleam `depTypes`
- make sure to use the `knownDepTypes`'s `prettyDepType` definition if
  we know it, for a given `depType`

The descriptions have been generated by Claude Sonnet, with some
human-written tweaks where appropriate.

[0]: https://github.com/renovatebot/renovate/discussions/15176

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* fixup! docs: explicitly document `depTypes` each manager supports

* docs(manager): display `depTypes` documentation if none present

For consistency, and to make it more explicit.

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-03-31 12:08:39 +00:00
Sergei Zharinov e983daa75d feat(github-actions): Support digests for non-semver refs (#40225)
* feat(github-actions): Support non-semver refs (tags and branches)

* refactor(github-actions): drop ref= prefix, use bare token comments

Address review feedback: use bare `# cargo-llvm-cov` instead of
`# ref=cargo-llvm-cov` for non-semver pin comments, consistent with
how version comments work (`# v4.0.0`).

- Rename pinnedVersionRe -> pinTokenRe, add bareTokenRe fallback
- Add `ref` field to CommentData, separate from pinnedVersion
- Guard replaceString extension to only use ref for SHA-pinned actions
- Remove redundant autoReplaceStringTemplate override
- Deduplicate versionLikeRe (export from parse.ts)
- Add datasource assertions to non-semver tests

* refactor(github-actions): remove unreachable parseComment branch

* test(github-actions): add coverage for non-version ref fallback
2026-03-20 05:57:41 +00:00
Trim21 71674b73bf feat(github-actions): support golangci-lint version defined in golangci-lint-action (#41632)
* feat: support golangci-lint version defined in golangci-lint-action

* feat: add golangci-lint-action to supported community actions
2026-03-03 18:02:01 +00:00
renovate[bot] 4a2578d18d build(deps): update dependency zod to v4 (main) (#41225)
* build(deps): update dependency zod to v4

| datasource | package | from    | to    |
| ---------- | ------- | ------- | ----- |
| npm        | zod     | 3.25.76 | 4.3.6 |

* fix: zod migration

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-18 07:37:50 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Sergei Zharinov 5e56e2a636 refactor(github-actions): Simplify line parsing (#40096)
* base: pile foundation

* docs(github-actions): add comments to parsing functions
2026-01-23 12:58:33 +00:00
Sergei Zharinov fb80abbadd refactor(github-actions): Simplify line parsing (#40216) 2025-12-30 19:29:54 +00:00
Matthew Gamble fef1439916 fix(github-actions): handling of quoted Docker image references (#39635)
* fix: handling of quoted Docker image references in Github Actions

The problem with the use of '\s' is that it swallows the newline at the
end of the line, meaning the $ anchor doesn't have anything to match
against, which results in it failing to match quoted entries. By simply
switching to a dot (which doesn't match newlines), the issue is
resolved for all references.

* fix: further modify regex for docker image refs in github actions
2025-12-15 08:25:26 +00:00
Aspen ed5ad43e2b feat(managers/github-actions): extract and update version for pypa/hatch@install action (#38674)
* feat(github-actions): extract and update version for `pypa/hatch@install` action

* docs(managers/github-actions): add pypa install action to community uses-with list
2025-10-27 09:45:52 +00:00
Adam Setch 804f9aefcc fix(github-actions): uses-with action versions for ruby, deno, bun) (#38294)
* fix(github-actions): uses-with action versions for ruby, deno, bun)

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* fix(github-actions): uses-with action versions for ruby, deno, bun)

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-09-30 14:36:34 +00:00
Adam Setch fcc9d79b56 feat(github-actions): uses-with action versions for ruby, deno, bun (#38132)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-09-20 16:37:53 +00:00
Michael Kriese 3211d56e21 refactor(zod): rename schema to match our best practices guide (#37499) 2025-08-14 10:35:03 +00:00
Trim21 ff290b2ed3 feat(github-actions): add some community action support (#34791)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-08-07 16:17:21 +00:00
Patrick Schratz 6c2bd9d197 feat: add forgejo as a standalone platform (#37075)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-07-21 14:24:07 +00:00
Jack Baldry d4a25ff8ac feat(github-actions): Also allow forward slash to separate semantic version from a tag prefix (#35431)
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2025-05-07 11:00:13 +00:00
RahulGautamSingh bc7d0595d0 feat(config): managerFilePatterns (#34615)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-04 08:30:24 +00:00
Michael Kriese 89700e8433 fix(github-action): fix actions schema (#35054) 2025-03-28 14:00:03 +00:00
Michael Kriese ed7d148a40 feat(github-actions): extract versioned actions from composite actions (#34993) 2025-03-25 10:06:52 +00:00
Sergei Zharinov b2742b40e5 fix: Update schema error messages with more specific wording (#34885) 2025-03-18 20:00:22 +00:00
Sergei Zharinov 19b04caa67 feat(github-actions): Use schema for dependency extraction (#33584) 2025-03-17 08:56:15 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Rhys Arkins b11c05c6d7 fix(actions): add extractVersion to actions versions lookup (#34748) 2025-03-11 13:07:15 +00:00
Rhys Arkins 65324ac588 feat(github-actions): Support actions/setup-node/go/python with:node-version (#34662)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-03-07 12:59:35 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
Michael Kriese 45bdc77844 refactor(manager): always set package name from docker image extract (#33917) 2025-01-29 15:36:24 +00:00
Michael Kriese ac9ddf3266 fix(manager/github-actions): preserve full depName (#33450) 2025-01-07 15:17:38 +00:00
Michael Kriese 73b842fe3a feat(manager/github-actions): support registry aliases (#33377) 2025-01-02 18:06:11 +00:00
Risu 397ab49ef3 docs(managers): add missing url and displayName (#32621)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2024-12-01 08:47:27 +00:00
JP-Ellis 66f1ef564d feat(github-action): retain spaces in extracted values (#32730)
Signed-off-by: JP-Ellis <josh@jpellis.me>
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-11-28 20:58:28 +00:00
Sebastian Poxhofer d74ba704fd refactor: use yaml instead of js-yaml for parsing YAML files (#31336) 2024-09-16 18:03:23 +00:00
HonkingGoose c6824223aa docs: update references to Ubuntu versions (#28701)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-04-29 15:14:21 +00:00
Yohann Genre 6ad6022fb2 feat(manager/github-actions): extract complex github tags (#27941) 2024-03-26 14:41:47 +00:00
Artem Kamenev 27eb84f7fb feat(github-actions): add support for version tag prefixes (#27882) 2024-03-13 19:11:16 +00:00
Artem Kamenev 3b4b7f1ff3 feat(github-actions): support ratchet comments (#27846)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-03-12 11:30:43 +00:00
Michael Kriese 1e1fb74c07 fix(datasource/github-runners): wrong macos labels (#27241) 2024-02-12 16:10:53 +00:00
Rhys Arkins c9151596f9 fix(github-actions): handle whitespace after uses (#27170) 2024-02-09 12:26:51 +01:00