Missing credentials when setting the context
See original GitHub issueBehaviour
Steps to reproduce this issue
Put the Docker context in a subdirectory e.g. server and run the following configuration:
- name: Build image
uses: docker/build-push-action@v3
with:
load: true
# Syntax: https://docs.docker.com/engine/reference/commandline/build/
context: "{{defaultContext}}:server"
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
Actual behaviour
Failure to get the username:
/usr/bin/docker buildx build --iidfile /tmp/docker-build-push-9SllsU/iidfile --label org.opencontainers.image.title=app --label org.opencontainers.image.description= --label org.opencontainers.image.url=<redacted> --label org.opencontainers.image.source=<redacted> --label org.opencontainers.image.version=pr-11 --label org.opencontainers.image.created=2022-08-03T07:38:40.750Z --label org.opencontainers.image.revision=2651e28ed8145bbd9f9cd8cb0dd6d7fc994b720a --label org.opencontainers.image.licenses= --label org.opencontainers.image.title=app --tag <redacted>:pr-11 --load --metadata-file /tmp/docker-build-push-9SllsU/metadata-file <redacted>.git#refs/pull/11/merge:server
#1 [internal] load git source <redacted>.git#refs/pull/11/merge:server
#0 0.113 hint: Using 'master' as the name for the initial branch. This default branch name
#0 0.113 hint: is subject to change. To configure the initial branch name to use in all
#0 0.113 hint: of your new repositories, which will suppress this warning, call:
#0 0.113 hint:
#0 0.113 hint: git config --global init.defaultBranch <name>
#0 0.113 hint:
#0 0.113 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#0 0.113 hint: 'development'. The just-created branch can be renamed via this command:
#0 0.113 hint:
#0 0.113 hint: git branch -m <name>
#1 0.119 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
#1 0.955 fatal: could not read Username for 'https://github.com/': terminal prompts disabled
#1 ERROR: failed to fetch remote <redacted>.git: exit status 128
------
> [internal] load git source <redacted>.git#refs/pull/11/merge:server:
#0 0.113 hint: of your new repositories, which will suppress this warning, call:
#0 0.113 hint:
#0 0.113 hint: git config --global init.defaultBranch <name>
#0 0.113 hint:
#0 0.113 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#0 0.113 hint: 'development'. The just-created branch can be renamed via this command:
#0 0.113 hint:
#0 0.113 hint: git branch -m <name>
#1 0.119 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/1/fs/
#1 0.955 fatal: could not read Username for 'https://github.com/': terminal prompts disabled
Setting explicitely the Github token allows to work around the issue:
with:
[...]
secrets: "GIT_AUTH_TOKEN=${{ github.token }}"
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
PnP Context is missing credentials · Issue #2135 - GitHub
After connecting to a specific tenant with connect-pnponline and retrieving the context, the credentials property is empty. We also see that the ...
Read more >Missing credentials in config, if using AWS_CONFIG_FILE, set ...
When using credentials in plain text everything works good but when I am trying to use environment variables it's not working. Error message....
Read more >UWL Warning message : Missing credentials - SAP Community
I recently find one of the user getting missing credential error something like. "Exception type:com.sap.netweaver.bc.uwl.connect.
Read more >missing credentials | Firefox Support Forum
I have located the logins.json file which is inside my current profile and can open it with FireFox. It contains over 100 records...
Read more >aws-sdk missing credentials when being run inside ecs?
I'm getting a CredentialsError: Missing credentials in… ... CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@djs55 I forgot to take into account the template case. Should be fine now, let me know.
Unfortunately it doesn’t work, still the same error github_actions.log.gz