Skip to content

ci: Dependabot helm job fails on Docker Hub auth #393

Closed

Description

@uniqueg

Dependabot's helm job for /examples/petstore/chart fails (job log of 2026-10-22):

docker.io/library/mongo | private_source_authentication_failure | source docker.io
docker.io/library/rabbitmq | private_source_authentication_failure | source docker.io

The docker job for /docker works. Dependabot's Helm support also updates the images in values.yaml ("When configuring Dependabot for Helm charts, it will also automatically update the Docker images referenced within those charts", Guidance for the configuration of private registries for Dependabot), and pulling Docker Hub anonymously fails for it.

Fix: configure Docker Hub credentials as a registry in .github/dependabot.yml, as in the Docker Hub example of Configuring access to private registries for Dependabot:

registries:
  dockerhub:
    type: docker-registry
    url: https://registry.hub.docker.com
    username: ${{secrets.DOCKERHUB_LOGIN}}
    password: ${{secrets.DOCKERHUB_TOKEN}}
    replaces-base: true

and reference it from the helm update (and the docker update, which pulls from Docker Hub too). The same page says that helm-registry "only supports HTTP Basic Auth and does not support OCI-compliant registries" and to "configure a docker-registry instead", so docker-registry is the type to use with Helm.

This needs the Dependabot secrets DOCKERHUB_LOGIN and DOCKERHUB_TOKEN (Dependabot cannot read Actions secrets), with a Docker Hub personal access token with the scope "Public Repo Read-only".

Activity

  1. added
    priority: medium
    status: in progress
    type: ci / cd
    workload: minutes
    on Oct 22, 2026
  2. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Done in #395.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: in progresstype: ci / cdworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions