Skip to content

Conversation

@emonti-ltc
Copy link
Contributor

By only expanding template values in the job as environment variables instead of in-line in 'run:' and 'script:' blocks we can broadly avoid injection issues via template expansion.

This change broadly implements this best practice fix as well as ensuring safe use of environment variables within 'run:' and 'script:' blocks as needed to avoid shell and script expansion issues.

For reference, see:
https://github.blog/security/vulnerability-research/how-to-catch-github-actions-workflow-injections-before-attackers-do/#h-explaining-actions-workflow-injections

By only expanding template values in the job as environment variables
instead of in-line in 'run:' and 'script:' blocks we can broadly avoid
injection issues via template expansion.

This change broadly implements this best practice fix as well as ensuring
safe use of environment variables within 'run:' and 'script:' blocks as
needed to avoid shell and script expansion issues.

For reference, see:
https://github.blog/security/vulnerability-research/how-to-catch-github-actions-workflow-injections-before-attackers-do/#h-explaining-actions-workflow-injections
@aidenmitchell
Copy link
Member

Solved in #627 due to merge conflicts.

@emonti-ltc emonti-ltc deleted the latacora-fix-gh-workflows branch October 11, 2025 18:43
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