GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — authentication token scopes support by crazy-max · Pull Request #73 · docker/github-builder

Conversation

@crazy-max

@crazy-max crazy-max commented Jan 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

follow-up:

  • auth: add option to load docker config for specific repo/scope buildx#3562
  • Add scope input to set scopes for the authentication token login-action#912

Tested in https://github.com/docker/github-builder-experimental/actions/runs/20819183390/job/59802724934

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot assigned crazy-max Jan 8, 2026
@crazy-max
crazy-max force-pushed the scope-auth branch 2 times, most recently from 229f7d6 to a9d4e13 Compare January 8, 2026 11:28
crazy-max
crazy-max commented Jan 8, 2026
View reviewed changes
Comment thread .github/workflows/bake.yml
Comment on lines +636 to +643
-
name: Login to registry for signing
if: ${{ needs.prepare.outputs.sign == 'true' && inputs.output == 'image' }}
uses: docker/login-action@scope # TODO: pin to a specific version when scope feature is supported
with:
registry-auth: ${{ secrets.registry-auths }}
env:
DOCKER_LOGIN_SCOPE_DISABLED: true # make sure the scope feature is disabled to avoid interfering with cosign OIDC login

@crazy-max crazy-max Jan 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@tonistiigi Needs extra login without scope after build so cosign can use auth from vanilla docker config when signing attestation manifests, otherwise it fails with: https://github.com/docker/github-builder-experimental/actions/runs/20814314320/job/59786046485#step:12:96

Error: Signing BuildKit attestation manifests failed: Cosign sign command failed with errors:
- [UNAUTHORIZED] authentication required : [object Object],[object Object]

Fyi cosign is using google/go-containerregistry to get auth: https://github.com/google/go-containerregistry/blob/e075f209120b2467fd1b7d24727f1890a0edb74a/pkg/authn/keychain.go#L87

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max
crazy-max requested a review from tonistiigi January 8, 2026 13:44
@crazy-max
crazy-max force-pushed the scope-auth branch from a9d4e13 to c4b9332 Compare January 8, 2026 13:53
@crazy-max crazy-max added this to the GA milestone Jan 13, 2026
@crazy-max
crazy-max force-pushed the scope-auth branch 2 times, most recently from bcee16a to 9491fd3 Compare January 27, 2026 15:28
@crazy-max
authentication token scopes support
e5766cb
Signed-off-by: CrazyMax <[email protected]>
@crazy-max
crazy-max force-pushed the scope-auth branch from 9491fd3 to e5766cb Compare January 28, 2026 13:06
@crazy-max
crazy-max marked this pull request as ready for review January 28, 2026 14:20
@crazy-max

crazy-max commented Jan 28, 2026

Copy link
Copy Markdown
Member Author

@tonistiigi Ready for review after releasing https://github.com/docker/login-action/releases/tag/v3.7.0

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tonistiigi
tonistiigi approved these changes Jan 28, 2026
View reviewed changes
@crazy-max
crazy-max merged commit 7256a7a into main Jan 28, 2026
301 of 302 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max
crazy-max deleted the scope-auth branch January 28, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tonistiigi tonistiigi tonistiigi approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@crazy-max crazy-max

Labels

None yet

Projects

None yet

Milestone

GA

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@crazy-max @tonistiigi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.