Skip to content

ci: replace registry container action reference - #1073

Merged
crazy-max merged 1 commit into
docker:masterfrom
quentin-laplanche-docker:ci/remove-docker-notation
Aug 24, 2026
Merged

ci: replace registry container action reference#1073
crazy-max merged 1 commit into
docker:masterfrom
quentin-laplanche-docker:ci/remove-docker-notation

Conversation

@quentin-laplanche-docker

@quentin-laplanche-docker quentin-laplanche-docker commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the unsupported uses: docker://docker reference with a local docker-pull container action
  • pin the Docker CLI base image by digest in the local action's Dockerfile
  • preserve the existing integration coverage for credentials used from a GitHub Actions container action

Why

Organization action allowlists do not support container actions referenced with docker:// notation.

The initial approach used a manual docker run, but that was not equivalent: it bypassed GitHub Runner's container-action handling and manually supplied the socket and Docker configuration mounts.

This revision instead invokes a narrowly scoped local action:

uses: ./.github/actions/docker-pull

The local action declares runs.using: docker, so GitHub Runner still builds and executes a real container action with its standard Docker socket, temporary home, workspace, and environment mounts. This retains the behavior the test is intended to cover while allowing the organization action allowlist to be enforced.

Validation

  • actionlint .github/workflows/ci.yml
  • docker build -t login-action-docker-pull-test .github/actions/docker-pull
  • docker run --rm login-action-docker-pull-test --version
  • git diff --check
  • verified no uses: docker:// references remain

@quentin-laplanche-docker
quentin-laplanche-docker force-pushed the ci/remove-docker-notation branch 2 times, most recently from d30d212 to e59e6f7 Compare August 24, 2026 12:42

@crazy-max crazy-max left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can replace this with docker run without losing the test coverage this job was added for.

This step is intentionally using a docker://... container action to verify that credentials written by docker/login-action are usable from an action container. A shell step that runs docker run with hand-written socket and config mounts tests a different integration path: our own manual container invocation, not GitHub Actions' container-action behavior.

The allowlist issue is real, but this PR removes the only coverage for the failing case instead of fixing support for it. If org allowlisting cannot support docker:// actions, we should either keep this workflow exempted, move this check somewhere enforcement does not apply, or replace it with another test that still exercises a real GitHub container action. A manual docker run is not an equivalent replacement.

@quentin-laplanche-docker quentin-laplanche-docker changed the title ci: replace Docker container action ci: replace registry container action reference Aug 24, 2026
@quentin-laplanche-docker

Copy link
Copy Markdown
Contributor Author

Good point—the manual docker run was not equivalent because it bypassed GitHub Runner’s container-action handling and therefore reduced the intended test coverage.

I’ve updated the PR to use a local Docker container action instead:

uses: ./.github/actions/docker-cli

The local action uses runs.using: docker, with the Docker CLI image pinned by digest in its Dockerfile. This means GitHub Runner still builds and executes a real container action with its standard Docker socket, temporary home, workspace, and environment mounts.

This preserves the integration path the test was designed to cover while removing the unsupported uses: docker://... reference so the organization action allowlist can be enforced.

Could you take another look?

Use a local Docker container action so the runner still exercises its container-action mounts and environment without a docker:// workflow reference.

Signed-off-by: Quentin Laplanche <quentin.laplanche@docker.com>

Co-authored-by: Codex <noreply@openai.com>
@crazy-max
crazy-max merged commit 0a596b2 into docker:master Aug 24, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants