Skip to content

chore: capture and use image digest in Dockerfile#139

Merged
joemiller merged 1 commit into
planetscale:mainfrom
kminehart:main
Jun 9, 2026
Merged

chore: capture and use image digest in Dockerfile#139
joemiller merged 1 commit into
planetscale:mainfrom
kminehart:main

Conversation

@kminehart

Copy link
Copy Markdown
Contributor

If you pin the GitHub Action workflow to a sha, for example, '57a6c787385af407a557374c794a09273aaebfd7', there is still an opportunity for a supplychain attack via the Dockerfile, as it is pinned to a mutable image tag rather than a digest.

With this update, the image digest is captured and reused in the Dockerfile rather than the image tag, thus ensuring that if you pin this workflow to a specific sha then the docker image can't change without updating the action.

@kminehart kminehart requested a review from a team as a code owner June 9, 2026 07:08
@joemiller

Copy link
Copy Markdown
Member

great contribution, thank you

@joemiller joemiller merged commit d9bb780 into planetscale:main Jun 9, 2026
2 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