Fix SC2086: Quote $GITHUB_OUTPUT in safe-inputs config generation#7921
Merged
Fix SC2086: Quote $GITHUB_OUTPUT in safe-inputs config generation#7921
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SC2086 by adding missing quotes in workflows
Fix SC2086: Quote $GITHUB_OUTPUT in safe-inputs config generation
Dec 27, 2025
pelikhan
approved these changes
Dec 27, 2025
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.
Shellcheck flagged 10 SC2086 violations across 5 workflows where
$GITHUB_OUTPUTwas unquoted in shell scripts, risking word splitting and glob expansion.Changes
pkg/workflow/mcp_servers.go: Added quotes around$GITHUB_OUTPUTvariable references in safe-inputs MCP server configuration generation (lines 293-294)Impact
Prevents potential shell expansion issues if
$GITHUB_OUTPUTever contains spaces or glob characters. All 10 SC2086 violations resolved.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login -json GO111MODULE ux-amd64/bin/go GOINSECURE GOMOD GOMODCACHE /home/REDACTED/go/GO111MODULE -V=f�� GOPATH GOPROXY ux-amd64/pkg/tool/linux_amd64/compile GOSUMDB GOWORK ux-amd64/bin/go ux-amd64/pkg/tool/linux_amd64/compile(http block)/usr/bin/gh gh api user --jq .login workflows 9679301/b374/_testmain.go /home/REDACTED/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/li--git-dir GOSUMDB GOWORK nk /home/REDACTED/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.linrev-parse -o tags/v5 nk by/ba918fc0ac40182b5e8ab27898391712307f30a4211a5743c8fa67cdf974802b/log.json -s -w l/linux_amd64/liuser ps(http block)/usr/bin/gh gh api user --jq .login tags/v6 -tests /usr/bin/git by/ba918fc0ac401infocmp GO111MODULE l/linux_amd64/coxterm-color git rev-�� c8fa67cdf974802b -bun.git /usr/bin/git -json GO111MODULE ux-amd64/bin/go git(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.