fix(security): resolve RGS-018 by moving jqschema.sh to the standard gh-aw actions location#31003
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/1942d06e-f14c-4dc6-8589-3e2618d78c01 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… with checked-in script Agent-Logs-Url: https://github.com/github/gh-aw/sessions/1942d06e-f14c-4dc6-8589-3e2618d78c01 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot move jqschema in actions/setup/sh so that scripts can use it Remove the self writing behavior Update prompts |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/47743cef-4c3f-43f7-b8c7-85429ab0d7ba Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in ae32a81. Summary of changes:
All 217 workflows recompiled; zero 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:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot move the jqschema.sh to the usual location for scripts used by gh-aw-actions, not /tmp/gh-aw/... register it as a tool. Update the prompts. |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/8f81a45a-157e-4a17-96c9-4a95ea0e1f47 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
… prompts Agent-Logs-Url: https://github.com/github/gh-aw/sessions/8f81a45a-157e-4a17-96c9-4a95ea0e1f47 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in 1e0c367. Changes:
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:
Agent-Logs-Url: REDACTED` (http block)
Arev-parse k/_temp/ghcca-no--show-toplevel infocmp -1 /*.js' --ignore-path .prettierigremote.origin.url git /usr/bin/infocmp --get-regexp --global cal/bin/git infocmp` (http block)
|
|
@copilot merge main and recompile |
…s-payload-execution-pattern # Conflicts: # .github/workflows/api-consumption-report.lock.yml # .github/workflows/audit-workflows.lock.yml # .github/workflows/changeset.lock.yml # .github/workflows/cli-version-checker.lock.yml # .github/workflows/cloclo.lock.yml # .github/workflows/copilot-opt.lock.yml # .github/workflows/copilot-session-insights.lock.yml # .github/workflows/daily-cache-strategy-analyzer.lock.yml # .github/workflows/daily-fact.lock.yml # .github/workflows/daily-issues-report.lock.yml # .github/workflows/daily-news.lock.yml # .github/workflows/daily-observability-report.lock.yml # .github/workflows/daily-safe-output-optimizer.lock.yml # .github/workflows/deep-report.lock.yml # .github/workflows/discussion-task-miner.lock.yml # .github/workflows/duplicate-code-detector.lock.yml # .github/workflows/issue-arborist.lock.yml # .github/workflows/org-health-report.lock.yml # .github/workflows/prompt-clustering-analysis.lock.yml # .github/workflows/safe-output-health.lock.yml # .github/workflows/schema-feature-coverage.lock.yml # .github/workflows/scout.lock.yml # .github/workflows/smoke-call-workflow.lock.yml # .github/workflows/smoke-codex.lock.yml # .github/workflows/stale-repo-identifier.lock.yml Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Runner-guard flags the heredoc pattern (
cat > /path/script.sh << 'EOF'+chmod +x) inshared/jqschema.mdas RGS-018 (suspicious payload execution), which propagated into 35+ compiled.lock.ymlfiles.Changes
actions/setup/sh/jqschema.sh— new checked-in file containing the jq schema-discovery script (previously written inline via heredoc); deployed automatically to${RUNNER_TEMP}/gh-aw/actions/jqschema.shby the existing genericsh/copy loop insetup.shactions/setup/setup.sh— no special-case copy needed; the generic shell script loop already handles deployment withchmod +x.github/workflows/shared/jqschema.md—steps:block removed entirely; script is pre-deployed by setup; tool registered as"${RUNNER_TEMP}/gh-aw/actions/jqschema.sh"pkg/cli/workflows/shared/jqschema.md— replaced placeholder content with proper frontmatter, tool registration, and usage prompt/tmp/gh-aw/jqschema.shto${RUNNER_TEMP}/gh-aw/actions/jqschema.shin bothtools: bash:sections and prompt text.lock.ymlfiles — recompiled after mergingmain; zero occurrences of the flagged heredoc pattern remain; all references now use${RUNNER_TEMP}/gh-aw/actions/jqschema.shBefore:
After: no runtime setup step —
jqschema.shis a checked-in file inactions/setup/sh/, deployed to${RUNNER_TEMP}/gh-aw/actions/jqschema.shby the standard setup action script copy loop before the agent job runs.