Skip to content

How much should I care about github.ref_name? #102

Locked Answered by woodruffw
funnelfiasco asked this question in Q&A
Discussion options

You must be logged in to vote

I'm running zizmor against guac-visualizer's release workflow and one of the issues it reports is a template injection because we use github.ref_name in a couple of places. I agree that in the abstract, that's a vector for injecting bad things into the workflow. However, in our specific case, the workflow only runs on v* tags, which essentially means anyone who could take advantage of this can already do plenty of damage.

FWIW, for github.ref_name in particular, should be able to use the GITHUB_REF_NAME environment variable as a direct replacement for it.

In your particular case, I think that would be:

          pack build --env NODE_ENV=production ${IMAGE_URI}:${GITHUB_REF_NAME} --buil…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@woodruffw
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by funnelfiasco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants