py-cov-action / python-coverage-comment-action

Publish coverage report as PR comment, and create a coverage badge & dashboard to display on the Readme for Python projects, all inside GitHub without third party servers
https://github.com/marketplace/actions/python-coverage-comment
MIT License
81 stars 29 forks source link

401 unauthorized error building docker image #483

Open mariaines opened 6 hours ago

mariaines commented 6 hours ago

We are using py-cov-action/python-coverage-comment-action@v3. Just started getting this error in our workflows:

/usr/bin/docker build -t b5c86f:646c26769b564c28b3472eebdb5a7171 -f "/home/runner/work/_actions/py-cov-action/python-coverage-comment-action/v3/Dockerfile" "/home/runner/work/_actions/py-cov-action/python-coverage-comment-action/v3"
  #0 building with "default" instance using docker driver

  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 245B done
  #1 DONE 0.0s

  #2 [auth] ewjoachim/python-coverage-comment-action-base:pull token for registry-1.docker.io
  #2 DONE 0.0s

  #[3](https://github.com/shadowpuppet/reloaded/actions/runs/11077471336/job/30782787497?pr=3028#step:3:3) [internal] load metadata for docker.io/ewjoachim/python-coverage-comment-action-base:v6
  #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Aewjoachim%2Fpython-coverage-comment-action-base%3Apull&service=registry.docker.io: [4](https://github.com/shadowpuppet/reloaded/actions/runs/11077471336/job/30782787497?pr=3028#step:3:4)01 Unauthorized
  ------
   > [internal] load metadata for docker.io/ewjoachim/python-coverage-comment-action-base:v[6](https://github.com/shadowpuppet/reloaded/actions/runs/11077471336/job/30782787497?pr=3028#step:3:6):
  ------
  Dockerfile:2
  --------------------
     1 |     # See Dockerfile.build for instructions on bumping this.
     2 | >>> FROM ewjoachim/python-coverage-comment-action-base:v6
     3 |     
     4 |     COPY coverage_comment ./coverage_comment
  --------------------
  ERROR: failed to solve: ewjoachim/python-coverage-comment-action-base:v6: failed to resolve source metadata for docker.io/ewjoachim/python-coverage-comment-action-base:v6: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Aewjoachim%2Fpython-coverage-comment-action-base%3Apull&service=registry.docker.io: 401 Unauthorized
crimsonknave commented 6 hours ago

It looks like the v6 tag (and v2-v5) are not present in docker hub: https://hub.docker.com/r/ewjoachim/coverage-comment-action/tags