Skip to content

feat: monitor Docker image updates in cli-version-checker workflow - #47980

Merged
pelikhan merged 3 commits into
mainfrom
copilot/update-daily-cli-version-updater
Jul 25, 2026
Merged

feat: monitor Docker image updates in cli-version-checker workflow#47980
pelikhan merged 3 commits into
mainfrom
copilot/update-daily-cli-version-updater

Conversation

Copilot AI commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Extends the daily CLI version checker to also track updates for all Docker images pinned in pkg/cli/docker_images.go (actionlint, syft, grype, grant, zizmor, poutine, runner-guard, yamllint), with a 3-day cooldown and container digest resolution before applying any update.

Changes

cli-version-checker.md — frontmatter

  • network.allowed: "ghcr.io"containers (expands to ghcr.io + *.docker.io + registry.hub.docker.com, enabling anonymous manifest fetches from both GHCR and Docker Hub)
  • Added docker_images_checked eval

cli-version-checker.md — workflow body

  • Docker Image Version Checking section: GitHub release API endpoints for all 8 images; 3-day cooldown via published_at check (skip releases < 3 days old); SHA fetch via Docker Registry v2 API (anonymous token + Docker-Content-Digest header for Docker Hub; docker manifest inspect / GHCR token fallback for GHCR images)
  • Update rules distinguish three cases: versioned-only (rhysd/actionlint:<tag>), versioned+digest (anchore/syft:<tag>@sha256:<digest>), and :latest-tagged images that get pinned on first update (zizmor, poutine, runner-guard, yamllint)
  • Issue format includes per-image block: version change, release date, full pinned reference (image:tag@sha256:...), and release notes summary
  • Update Process now covers docker_images.go edits and make fmt

cli-version-checker.lock.yml

Recompiled to reflect network config change.

Copilot AI and others added 2 commits July 25, 2026 11:05
…flow

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…flow

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review July 25, 2026 11:15
Copilot AI review requested due to automatic review settings July 25, 2026 11:15
@pelikhan
pelikhan merged commit 714b751 into main Jul 25, 2026
18 checks passed
@pelikhan
pelikhan deleted the copilot/update-daily-cli-version-updater branch July 25, 2026 11:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Extends the daily CLI version checker to monitor and pin Docker image releases.

Changes:

  • Adds release cooldown and digest-resolution instructions for eight images.
  • Expands registry network access and adds Docker-specific evaluation.
  • Recompiles the generated workflow.
Show a summary per file
File Description
.github/workflows/cli-version-checker.md Adds Docker image monitoring and update guidance.
.github/workflows/cli-version-checker.lock.yml Reflects the recompiled workflow configuration.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (1)

.github/workflows/cli-version-checker.md:259

  • The GHCR fallback has the same authentication failure as the Docker Hub example: it requests a token but sends the literal ******, so the fallback returns 401 instead of a digest. Use the bearer token acquired on line 257.
  -H "Authorization: ******" \
  • Files reviewed: 2/2 changed files
  • Comments generated: 5
  • Review effort level: Medium

engine: claude
network:
allowed: [defaults, node, go, "api.github.com", "ghcr.io"]
allowed: [defaults, node, go, "api.github.com", containers]

## Docker Image Version Checking

After checking CLI tools, also check the Docker images defined in `./pkg/cli/docker_images.go` for updates.
| `ZizmorImage` | `ghcr.io/zizmorcore/zizmor:latest` | `https://api.github.com/repos/zizmorcore/zizmor/releases/latest` |
| `PoutineImage` | `ghcr.io/boostsecurityio/poutine:latest` | `https://api.github.com/repos/boostsecurityio/poutine/releases/latest` |
| `RunnerGuardImage` | `ghcr.io/vigilant-llc/runner-guard:latest` | `https://api.github.com/repos/vigilant-llc/runner-guard/releases/latest` |
| `YamllintImage` | `pipelinecomponents/yamllint:latest` | `https://api.github.com/repos/PipelineComponents/yamllint/releases/latest` |
TOKEN=$(curl -s "https://auth.docker.io/token?scope=repository:anchore/syft:pull&service=registry.docker.io" | jq -r .token)
# Fetch the manifest digest (amd64 manifest list or single-arch)
curl -sI \
-H "Authorization: ******" \
Comment on lines +252 to +253
docker manifest inspect "ghcr.io/zizmorcore/zizmor:v1.0.0" --verbose 2>/dev/null \
| jq -r 'if type == "array" then .[0].Descriptor.digest else .config.digest end'
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.3

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.

3 participants