Skip to content

fix: track shared scanner images with Renovate - #7

Merged
altaywtf merged 1 commit into
mainfrom
fix/renovate-scanner-coverage
Sep 7, 2026
Merged

fix: track shared scanner images with Renovate#7
altaywtf merged 1 commit into
mainfrom
fix/renovate-scanner-coverage

Conversation

@altaywtf

@altaywtf altaywtf commented Sep 7, 2026

Copy link
Copy Markdown
Member

Problem

The shared scanner workflow has no Renovate configuration, and its four Docker image references inside shell commands are not extracted by the built-in GitHub Actions manager.

Solution

Use the organization preset and a narrow custom manager for scanner image tags and digests. Add each image's existing tag beside its unchanged digest, preserving the executed images and invocation flags. Digest-only updates retain the preset's manual merge policy.

Proof

All four registry tags resolve to the existing pinned digests. Renovate 44.65.5's actual extractor returns exactly the expected four image names, versions and digests, and rejects unrelated images and malformed digests. Config validation passed with its native RE2 module unavailable (RegExp fallback). The forced local actionlint/zizmor gate passed; local zizmor ran offline.

Copilot AI lite review requested due to automatic review settings September 7, 2026 10:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T10:19:31.861686Z 9336f5f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@altaywtf
altaywtf merged commit e9e6740 into main Sep 7, 2026
5 checks passed
@altaywtf
altaywtf deleted the fix/renovate-scanner-coverage branch September 7, 2026 10:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The Renovate custom manager uses managerFilePatterns with a /.../-delimited pattern, which may prevent Renovate from matching scan.yml and undermine the PR’s goal.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds Renovate configuration to the shared scanner workflow so Renovate can track (and propose updates for) scanner Docker images that are currently referenced inside docker run shell commands.

Changes:

  • Added renovate.json extending the org preset and introducing a regex-based custom manager for scanner images.
  • Updated .github/workflows/scan.yml to include :tag@sha256:... image references for the four scanners.
  • Documented the Renovate behavior and intent in README.md.
File summaries
File Description
renovate.json Introduces Renovate preset + regex custom manager for extracting scanner image tags/digests from scan.yml.
.github/workflows/scan.yml Adds explicit tags alongside existing pinned digests so Renovate can extract versions for scanner images.
README.md Documents Renovate tracking for scanner images in the shared scan workflow.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 40 to +42
docker run --rm --network none -v "$PWD:/repo:ro" \
zricethezav/gitleaks@sha256:c00b6bd0aeb3071cbcb79009cb16a60dd9e0a7c60e2be9ab65d25e6bc8abbb7f \
detect --source /repo --redact --no-banner --log-level error # v8.30.1
zricethezav/gitleaks:v8.30.1@sha256:c00b6bd0aeb3071cbcb79009cb16a60dd9e0a7c60e2be9ab65d25e6bc8abbb7f \
detect --source /repo --redact --no-banner --log-level error
Comment thread renovate.json
Comment on lines +10 to +12
"managerFilePatterns": [
"/^\\.github/workflows/scan\\.yml$/"
],
Comment thread README.md
Comment on lines +13 to +15
Renovate uses the shared organization preset and tracks the four scanner image
tags and digests in `scan.yml`. Digest-only updates remain manual under that
preset. Image tags provide update metadata; execution remains pinned by digest.
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.

2 participants