Skip to content

Replace docker/login-action with inline docker login#8694

Open
inahga wants to merge 4 commits intomainfrom
replace-docker-login-action
Open

Replace docker/login-action with inline docker login#8694
inahga wants to merge 4 commits intomainfrom
replace-docker-login-action

Conversation

@inahga
Copy link
Copy Markdown
Contributor

@inahga inahga commented Mar 30, 2026

Drop dependency on docker/login-action by replacing it with a simple
docker login command. Just reduces our supply chain exposure a bit.

Drop dependency on docker/login-action by replacing it with a simple
docker login command. Just reduces our supply chain exposure a bit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@inahga inahga requested a review from a team as a code owner March 30, 2026 18:04
@inahga inahga requested a review from aarongable March 30, 2026 18:04
@inahga inahga marked this pull request as draft March 30, 2026 18:05
@inahga inahga marked this pull request as ready for review March 30, 2026 18:09
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_PASSWORD}}
# Log out from the Docker registry at the end of a job
logout: true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We lose logout at the end of the job, but I think this is moot. The runner is discarded after each matrix run.

@aarongable aarongable requested a review from jsha April 2, 2026 21:13
@inahga inahga requested a review from aarongable April 6, 2026 18:36
Copy link
Copy Markdown
Contributor

@aarongable aarongable left a comment

Choose a reason for hiding this comment

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

LGTM, with the caveat that I'd like to see some sort of indication (e.g. in the PR description) that this is an accepted best-practice way to do this. GitHub Action supply chain dependency attacks are very real. They also protect us from very real accidental errors, like getting the difference between "$DOCKER_PASSWORD" and ${DOCKER_PASSWORD} wrong.

# Log out from the Docker registry at the end of a job
logout: true
continue-on-error: true
run: printenv DOCKER_PASSWORD | docker login -u "$DOCKER_USERNAME" --password-stdin docker.io
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This step should probably still have continue-on-error: true, so that versions of this workflow run in contexts that don't have access to our secrets can still download boulder-tools (subject to rate limits).

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.

3 participants