Skip to content

CI: "Test OLM upgrade" job fails on PRs at registry.redhat.io login (missing REGISTRY_USER/REGISTRY_PASSWORD) #196

Open

Description

@miyunari

Summary

The Test OLM upgrade job (.github/workflows/test-e2e.yml, job test-e2e-olm-upgrade) fails on pull requests at the Log in to registry.redhat.io step. It fails fast (~20s) before running any actual OLM test, so every affected PR shows a red check regardless of what it changes — including docs-only PRs.

Error

##[error]Error: Input required and not supplied: username

The step uses:

- name: Log in to registry.redhat.io
  uses: redhat-actions/podman-login@v1
  with:
    username: ${{ secrets.REGISTRY_USER }}
    password: ${{ secrets.REGISTRY_PASSWORD }}
    registry: registry.redhat.io

secrets.REGISTRY_USER / secrets.REGISTRY_PASSWORD resolve to empty in the PR run, so podman-login errors on the missing username. The same applies to the following brew.registry.redhat.io login step.

Reproduction / evidence

Impact

  • Non-fork PRs get a persistent red "Test OLM upgrade" check unrelated to their changes.
  • Dependabot PRs can never pass this check (Dependabot secret context).
  • If this check is required for merge, it blocks otherwise-green PRs.

Possible directions (for discussion)

  • Guard the registry-login + OLM steps to skip cleanly when the secrets are absent (e.g. if: ${{ secrets.REGISTRY_USER != '' }}), rather than failing.
  • Add REGISTRY_USER / REGISTRY_PASSWORD to the repo's Actions secrets (and the Dependabot secret store) if the job is meant to run on PRs.
  • Or move the OLM-upgrade test to a push-only / scheduled workflow and drop it from the required PR checks.

Environment

  • Workflow: .github/workflows/test-e2e.yml, job Test OLM upgrade
  • Action: redhat-actions/podman-login@v1

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions