ci: replace registry container action reference - #1073
Conversation
d30d212 to
e59e6f7
Compare
crazy-max
left a comment
There was a problem hiding this comment.
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.
e59e6f7 to
057888e
Compare
|
Good point—the manual I’ve updated the PR to use a local Docker container action instead: uses: ./.github/actions/docker-cliThe local action uses This preserves the integration path the test was designed to cover while removing the unsupported 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>
057888e to
5d1ee94
Compare
Summary
uses: docker://dockerreference with a localdocker-pullcontainer actionWhy
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:
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.ymldocker build -t login-action-docker-pull-test .github/actions/docker-pulldocker run --rm login-action-docker-pull-test --versiongit diff --checkuses: docker://references remain