Skip to content

build: reuse build session for policy source resolution#3690

Merged
tonistiigi merged 1 commit intodocker:masterfrom
crazy-max:policy-session
Mar 4, 2026
Merged

build: reuse build session for policy source resolution#3690
tonistiigi merged 1 commit intodocker:masterfrom
crazy-max:policy-session

Conversation

@crazy-max
Copy link
Member

fixes docker/build-push-action#1477

Forward main solve session attachables (secrets) to the internal sourcemeta resolver solve used for remote policy/context probing. This fixes private remote git contexts in build where GIT_AUTH_TOKEN was not available during policy file lookup.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max marked this pull request as ready for review March 4, 2026 17:20
@crazy-max crazy-max added this to the v0.32.1 milestone Mar 4, 2026
@crazy-max crazy-max requested a review from tonistiigi March 4, 2026 17:21
@tonistiigi tonistiigi merged commit d315c08 into docker:master Mar 4, 2026
241 of 244 checks passed
@crazy-max crazy-max deleted the policy-session branch March 4, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git auth token not taken into account since Buildx v0.32.0

2 participants