Repository navigation
DO-2064: fix unath yq download - #205
Merged
Merged
Conversation
This is effectively the same steps we use for the install-safe-chain action. It ensures the SHA256 checksum of the binary is correct before allowing it to execute. This prevents the tag / release from being re-written and replaced with a malicious binary.
This updates yq to the latest released version and simplifies it's call-sites. yq now no longer has the !!merge bug so we can drop the sed and use yq's inplace edit. That let's us drop the shell passed to find. We also replace the bash environment variable substitutions (which can break or allow for a shell escape), with a yq strenv call that retrieves the environment variable directly. We also make the find call more robust by ensuring that it exits with an error if the yq call on any file fails.
This is cleaner and makes failures more obvious and easy to debug.
aaronmedina-dev
approved these changes
Nov 13, 2026
aaronmedina-dev
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
Tested <<: *defaults stays as written, and cfnRole is added correctly
AdamJHall
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the proposed changes
Context
Aikido flagged our download of yq as risking a supply-chain attack as the download was never verified.
Changes
Test
Unclear.
Screenshots (if applicable)
Other solutions considered (if any)
Notes to PR author
Notes to reviewers
Time Tracking
DO-2064: code review, select projectDevOps Team