Skip to content

fix(renovate): include sha256: prefix in chunkah currentDigest capture#323

Merged
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-chunkah-renovate-digest
Apr 23, 2026
Merged

fix(renovate): include sha256: prefix in chunkah currentDigest capture#323
castrojo merged 1 commit intoprojectbluefin:mainfrom
castrojo:feature/fix-chunkah-renovate-digest

Conversation

@castrojo
Copy link
Copy Markdown
Contributor

Renovate's Docker datasource requires currentDigest to include the 'sha256:' prefix. The previous regex stripped it, causing Renovate to silently discard the match without adding chunkah to detected dependencies.

Renovate's Docker datasource requires currentDigest to include the
'sha256:' prefix. The previous regex stripped it, causing Renovate to
silently discard the match without adding chunkah to detected dependencies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@castrojo castrojo merged commit 0761407 into projectbluefin:main Apr 23, 2026
2 of 3 checks passed
@castrojo castrojo deleted the feature/fix-chunkah-renovate-digest branch April 23, 2026 20:55
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Renovate configuration for the chunkah dependency to include the sha256: prefix within the currentDigest capture group. The reviewer identified a critical issue where the regex is missing the assignment operator (=), which would prevent it from matching the intended lines in the Justfile, and provided a more robust suggestion that handles optional whitespace.

Comment thread .github/renovate.json5
],
"matchStrings": [
"CHUNKAH_REF=\"(?<depName>quay\\.io/coreos/chunkah)@sha256:(?<currentDigest>[a-f0-9]{64})\""
"CHUNKAH_REF=\"(?<depName>quay\\.io/coreos/chunkah)@(?<currentDigest>sha256:[a-f0-9]{64})\""
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The fix for the currentDigest capture group correctly includes the sha256: prefix. However, the regex is missing the assignment operator (=) between the variable name and the value, which will prevent it from matching the assignment in the Justfile (e.g., CHUNKAH_REF="..."). Additionally, adding optional whitespace around the operator makes the regex more robust and consistent with other managers in this file.

        "CHUNKAH_REF\\s*=\\s*\"(?<depName>quay\\.io/coreos/chunkah)@(?<currentDigest>sha256:[a-f0-9]{64})\""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant