Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash-pin images used in the Dockerfile #1243

Closed
pnacht opened this issue Jun 26, 2023 · 1 comment
Closed

Hash-pin images used in the Dockerfile #1243

pnacht opened this issue Jun 26, 2023 · 1 comment

Comments

@pnacht
Copy link
Contributor

pnacht commented Jun 26, 2023

Hey, I'm back (see #1224) with another security suggestion!

Docker image tags are mutable and can therefore be modified by malicious actors. A solution is to pin the image to a hash instead. This ensures the image will always do what you expect.

The images can be kept up-to-date with dependabot. Whenever a new version of an Action is released, you'll receive a PR updating its hash (see my fork's PR for an example).

I'll send a PR along with this issue to pin the images and set up dependabot to keep an eye on them.

@sbc100
Copy link
Collaborator

sbc100 commented Jul 24, 2023

closing for now, we can revisit if needed.

@sbc100 sbc100 closed this as completed Jul 24, 2023
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 a pull request may close this issue.

2 participants