-
Notifications
You must be signed in to change notification settings - Fork 312
fix(security): unsafe YAML quoting for GH_AW_LABEL_NAMES env var (CodeQL go/unsafe-quoting) #22764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b60643f
df9c624
d35b9a3
f50b703
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentions this change is "consistent with every other JSON env var in the codebase", but there are still other JSON env vars embedded with single-quoted '%s' (e.g., pkg/workflow/compiler_pre_activation_job.go:226 uses %q, but pkg/workflow/compiler_yaml_main_job.go:109 uses '%s' for GH_AW_REPOSITORY_IMPORTS and pkg/workflow/compiler_yaml.go:683 uses '%s' for GH_AW_INFO_ALLOWED_DOMAINS). Consider either adjusting the description, or (as a follow-up) standardizing these remaining JSON env vars to a safe quoting/escaping strategy as well.