Skip to content

[CI] Avoid template expressions in workflow shell scripts - #6297

Merged
gyohuangxin merged 1 commit into
add-security-scanningfrom
ci/harden-workflow-template-expressions
Oct 9, 2026
Merged

gyohuangxin merged 1 commit into
add-security-scanningfrom
ci/harden-workflow-template-expressions

Conversation

@gyohuangxin

Copy link
Copy Markdown
Member

Summary

  • Move GitHub workflow expressions out of shell run blocks and into step env vars
  • Cover the high-severity zizmor template-injection findings in the affected workflows
  • Keep command behavior unchanged by reading the same values from environment variables

Validation

  • Confirmed modified workflow run blocks no longer contain direct GitHub expressions
  • Ran workflow YAML parsing
  • Ran git diff --check

Part of fixing zizmor failures from #5770.

@gyohuangxin
gyohuangxin force-pushed the ci/harden-workflow-template-expressions branch from 52a7835 to 0cc7121 Compare October 9, 2026 07:45
@gyohuangxin
gyohuangxin merged commit 70563b5 into add-security-scanning Oct 9, 2026
@gyohuangxin
gyohuangxin deleted the ci/harden-workflow-template-expressions branch October 9, 2026 08:02
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.

1 participant