Skip to content

fix(lookup): OCI charts follow imageDigests, not actionDigests - #251

Merged
sweepies merged 1 commit into
mainfrom
fix/chart-digest-setting
Nov 11, 2026
Merged

sweepies merged 1 commit into
mainfrom
fix/chart-digest-setting

Conversation

@sweepies

@sweepies sweepies commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Bug 3 from design consult 4.

The digest default in effective() (crates/lookup/src/lib.rs) gave only ContainerImage the imageDigests setting. Meanwhile the needs-digest rule already pins OCI Chart dependencies, so chart digests followed actionDigests. OCI Helm charts (Chart.yaml dependencies, Kustomize helmCharts, Flux OCIRepository/HelmRelease) now answer to imageDigests like every other OCI artifact. actionDigests still governs actions, reusable workflows and APM packages.

Behaviour change: a repository that sets actionDigests = false and leaves imageDigests on now gets digest pins for OCI charts, and imageDigests = false now turns them off.

Test: oci_charts_follow_the_image_digest_setting (lookup/tests/policy.rs) turns each setting off separately and checks that the chart follows the image setting while an action follows the action setting.

Corpus snapshot: unchanged. The corpus uses the defaults, where both settings are on, so it cannot tell them apart.

Docs: guide/managers.md (Helm), guide/configuration.md, and the PatchulaConfig.pkl doc comments for both settings. Renovate has a single pinDigests, so there is no departure to note.

View guided diff Turn on auto-fix

The digest default by kind gave only container images the imageDigests
setting while the needs-digest rule also pins Helm charts from oci://
registries, so a chart's digests answered to actionDigests. A chart in an
OCI registry is an image: it now takes imageDigests like every other
container image.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
count-patchula 23ce018 Commit Preview URL

Branch Preview URL
Nov 11 2026, 07:06 AM

@sweepies
sweepies merged commit f727734 into main Nov 11, 2026
13 checks passed
@sweepies
sweepies deleted the fix/chart-digest-setting branch November 11, 2026 07:17
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 11, 2026
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