Skip to content

Use SHA instead of Docker version tag for base image to allow for consistent code execution.#60

Merged
Burnett01 merged 2 commits intoBurnett01:release/7.0.1from
XComp:use-hash-instead-of-version-tag
Mar 31, 2024
Merged

Use SHA instead of Docker version tag for base image to allow for consistent code execution.#60
Burnett01 merged 2 commits intoBurnett01:release/7.0.1from
XComp:use-hash-instead-of-version-tag

Conversation

@XComp
Copy link
Contributor

@XComp XComp commented Mar 28, 2024

We're using this action for Apache Flink where we're required to review any custom actions. Fixing the base image version with the SHA256 hash instead of a version to would allow us to make sure that we're always execute the code that was reviewed.

@Burnett01
Copy link
Owner

Hi @XComp Thank you very much for your contribution and I fully agree 👍🏾

@Burnett01 Burnett01 self-assigned this Mar 30, 2024
@Burnett01 Burnett01 added enhancement New feature or request dependencies Pull requests that update a dependency file labels Mar 30, 2024
Copy link
Owner

@Burnett01 Burnett01 left a comment

Choose a reason for hiding this comment

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

@Burnett01 Burnett01 changed the base branch from master to release/7.0.1 March 30, 2024 09:44
@Burnett01
Copy link
Owner

LGTM into release 7.0.1

@Burnett01 Burnett01 merged commit b2bc75a into Burnett01:release/7.0.1 Mar 31, 2024
@Burnett01 Burnett01 mentioned this pull request Mar 31, 2024
Burnett01 added a commit that referenced this pull request Mar 31, 2024
- Pin @JoshPiper [drinternet/rsync](https://github.com/JoshPiper/rsync-docker) image by SHA-256 hash rather than version.  (Immutability)
Added via #60 

The docker image of this action is now pinned to the specific SHA-256 hash of the version rather than just the version.
This means for the latest `drinternet/rsync:v1.4.4` the corresponding hash is `drinternet/rsync@sha256:15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234`

Check for validation: https://hub.docker.com/layers/drinternet/rsync/v1.4.4/images/sha256-15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234

With that, usage of this action is even more secure due to a consistent dependency chain of trust,
since changes accompanied by a docker image hash are immutable.

Thanks to @XComp
Burnett01 added a commit that referenced this pull request Jul 1, 2024
Use SHA instead of Docker version tag for base image to allow for consistent code execution.
Burnett01 added a commit that referenced this pull request Jul 1, 2024
- Pin @JoshPiper [drinternet/rsync](https://github.com/JoshPiper/rsync-docker) image by SHA-256 hash rather than version.  (Immutability)
Added via #60 

The docker image of this action is now pinned to the specific SHA-256 hash of the version rather than just the version.
This means for the latest `drinternet/rsync:v1.4.4` the corresponding hash is `drinternet/rsync@sha256:15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234`

Check for validation: https://hub.docker.com/layers/drinternet/rsync/v1.4.4/images/sha256-15b2949838074bd93c49421c22380396a0cd53a322439e799ac87afcadcfe234

With that, usage of this action is even more secure due to a consistent dependency chain of trust,
since changes accompanied by a docker image hash are immutable.

Thanks to @XComp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants