[GH-ISSUE #788] Issue: job using container from private registry fails with "no basic auth credentials" #494

Closed
opened 2026-03-01 21:43:54 +03:00 by kerem · 2 comments
Owner

Originally created by @gdanov on GitHub (Aug 29, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/788

Originally assigned to: @catthehacker on GitHub.

System information

- Operating System:  macOS 
- Architecture:  x64 (64-bit)
- Apple M1:  no 
- Docker version: 20.10.8
- Docker image used in `act`: catthehacker/ubuntu:act-20.04
- `act` version: 0.2.24

Expected behaviour

be able to use job.container.image from private repo

Actual behaviour

When run on github runner functions as expected.

When using act I get the output below

[Refresh Staging/sshh]   🐳  docker pull rc.infludata.com:5000/ops/ansible
DEBU[0000] Image exists? false
[Refresh Staging/sshh] pulling image 'rc.infludata.com:5000/ops/ansible' ()
DEBU[0000] Error response from daemon: Head "https://rc.infludata.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials

Workflow and/or repository

  sshh:
    # The type of runner that the job will run on
    runs-on: ubuntu-20.04
    container:
      image: rc.xxxx.com:5000/ops/ansible
      credentials:
        username: ****
        password: ****

Steps to reproduce

act -s ANSIBLE_SSH_KEY -j sshh -v

act output

Log

/instap/ops-handbook>act -s ANSIBLE_SSH_KEY -j sshh -v
DEBU[0000] Loading environment from /Users/gdanov/work/instap/ops-handbook/.env
DEBU[0000] Loading secrets from /Users/gdanov/work/instap/ops-handbook/.secrets
DEBU[0000] Loading workflows from '/Users/gdanov/work/instap/ops-handbook/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'refresh-staging.yml' in '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml'
DEBU[0000] Found workflow 'test.yml' in '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml'
DEBU[0000] Reading workflow '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml'
DEBU[0000] Correcting if statements '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml'
DEBU[0000] Reading workflow '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml'
DEBU[0000] Correcting if statements '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml'
DEBU[0000] Planning job: sshh
DEBU[0000] Loading slug from git directory '/Users/gdanov/work/instap/ops-handbook/.git'
DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5
DEBU[0000] Loading revision from git directory '/Users/gdanov/work/instap/ops-handbook/.git'
DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5
DEBU[0000] HEAD points to '73b7efaf48ce678850d175459d729f252f4d18e5'
DEBU[0000] using github ref: refs/heads/master
DEBU[0000] context env => map[ACT:true]
DEBU[0000] context needs => map[]
[Refresh Staging/sshh] 🚀  Start image=rc.xxx.com:5000/ops/ansible
DEBU[0000] Loading slug from git directory '/Users/gdanov/work/instap/ops-handbook/.git'
DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5
DEBU[0000] Loading revision from git directory '/Users/gdanov/work/instap/ops-handbook/.git'
DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5
DEBU[0000] HEAD points to '73b7efaf48ce678850d175459d729f252f4d18e5'
DEBU[0000] using github ref: refs/heads/master
[Refresh Staging/sshh]   🐳  docker pull rc.xxx.com:5000/ops/ansible
DEBU[0000] Image exists? false
[Refresh Staging/sshh] pulling image 'rc.xxx.com:5000/ops/ansible' ()
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
Error: Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials
Originally created by @gdanov on GitHub (Aug 29, 2021). Original GitHub issue: https://github.com/nektos/act/issues/788 Originally assigned to: @catthehacker on GitHub. <!-- - Make sure you are able to reproduce it on the [latest version](https://github.com/nektos/act/releases) - Search the existing issues. - Refer to [README](https://github.com/nektos/act/blob/master/README.md). --> ## System information - Operating System: macOS - Architecture: x64 (64-bit) - Apple M1: no - Docker version: 20.10.8 - Docker image used in `act`: catthehacker/ubuntu:act-20.04 - `act` version: 0.2.24 ## Expected behaviour be able to use job.container.image from private repo ## Actual behaviour When run on github runner functions as expected. When using act I get the output below ``` [Refresh Staging/sshh] 🐳 docker pull rc.infludata.com:5000/ops/ansible DEBU[0000] Image exists? false [Refresh Staging/sshh] pulling image 'rc.infludata.com:5000/ops/ansible' () DEBU[0000] Error response from daemon: Head "https://rc.infludata.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials ``` ## Workflow and/or repository ``` sshh: # The type of runner that the job will run on runs-on: ubuntu-20.04 container: image: rc.xxxx.com:5000/ops/ansible credentials: username: **** password: **** ``` ## Steps to reproduce `act -s ANSIBLE_SSH_KEY -j sshh -v` ## `act` output <details> <summary>Log</summary> ```none /instap/ops-handbook>act -s ANSIBLE_SSH_KEY -j sshh -v DEBU[0000] Loading environment from /Users/gdanov/work/instap/ops-handbook/.env DEBU[0000] Loading secrets from /Users/gdanov/work/instap/ops-handbook/.secrets DEBU[0000] Loading workflows from '/Users/gdanov/work/instap/ops-handbook/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'refresh-staging.yml' in '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml' DEBU[0000] Found workflow 'test.yml' in '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml' DEBU[0000] Reading workflow '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml' DEBU[0000] Correcting if statements '/Users/gdanov/work/instap/ops-handbook/.github/workflows/refresh-staging.yml' DEBU[0000] Reading workflow '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml' DEBU[0000] Correcting if statements '/Users/gdanov/work/instap/ops-handbook/.github/workflows/test.yml' DEBU[0000] Planning job: sshh DEBU[0000] Loading slug from git directory '/Users/gdanov/work/instap/ops-handbook/.git' DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5 DEBU[0000] Loading revision from git directory '/Users/gdanov/work/instap/ops-handbook/.git' DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5 DEBU[0000] HEAD points to '73b7efaf48ce678850d175459d729f252f4d18e5' DEBU[0000] using github ref: refs/heads/master DEBU[0000] context env => map[ACT:true] DEBU[0000] context needs => map[] [Refresh Staging/sshh] 🚀 Start image=rc.xxx.com:5000/ops/ansible DEBU[0000] Loading slug from git directory '/Users/gdanov/work/instap/ops-handbook/.git' DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5 DEBU[0000] Loading revision from git directory '/Users/gdanov/work/instap/ops-handbook/.git' DEBU[0000] Found revision: 73b7efaf48ce678850d175459d729f252f4d18e5 DEBU[0000] HEAD points to '73b7efaf48ce678850d175459d729f252f4d18e5' DEBU[0000] using github ref: refs/heads/master [Refresh Staging/sshh] 🐳 docker pull rc.xxx.com:5000/ops/ansible DEBU[0000] Image exists? false [Refresh Staging/sshh] pulling image 'rc.xxx.com:5000/ops/ansible' () DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials DEBU[0000] Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials Error: Error response from daemon: Head "https://rc.xxx.com:5000/v2/ops/ansible/manifests/latest": no basic auth credentials ``` </details>
kerem 2026-03-01 21:43:54 +03:00
Author
Owner

@till commented on GitHub (Nov 12, 2021):

Made a PR. What's a good way to get maintainer feedback?

<!-- gh-comment-id:966921531 --> @till commented on GitHub (Nov 12, 2021): Made a PR. What's a good way to get maintainer feedback?
Author
Owner

@catthehacker commented on GitHub (Nov 12, 2021):

Just wait, I read all notifications from this repo.
In case of your PR, you need to correct checking for container: key as you noticed yourself 🐱

<!-- gh-comment-id:967004883 --> @catthehacker commented on GitHub (Nov 12, 2021): Just wait, I read all notifications from this repo. In case of your PR, you need to correct checking for `container:` key as you noticed yourself 🐱
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#494
No description provided.