Skip to content

Suppress RGS-012 finding for pinned GitHub remote MCP handshake curl - #55686

Merged
pelikhan merged 2 commits into
mainfrom
copilot/rgs-012-fix-secret-exfiltration-another-one
Aug 25, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/rgs-012-fix-secret-exfiltration-another-one

Conversation

Copilot AI commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Runner-guard flagged the curl call in the "Verify raw GitHub remote MCP handshake" step of github-remote-mcp-auth-test.lock.yml as a potential secret exfiltration risk (RGS-012), since it performs an outbound HTTP request in a job context with secrets access.

The target is a hardcoded, pinned endpoint (https://api.githubcopilot.com/mcp/) — the official GitHub remote MCP server — not attacker-influenced input, and the step exists specifically to test the MCP handshake against that server.

Changes

  • Added a runner-guard:ignore RGS-012 suppression comment directly above the curl invocation in github-remote-mcp-auth-test.md, with justification consistent with prior RGS-012 suppressions elsewhere in the repo.
  • Recompiled the workflow to regenerate github-remote-mcp-auth-test.lock.yml with the suppression carried through.
local http_code
# runner-guard:ignore RGS-012 -- pinned request to the official GitHub remote MCP endpoint (api.githubcopilot.com); verifies the token authenticates and receives the response, no data is exfiltrated to an attacker-controlled host.
if ! http_code="$(curl -sS -D "$response_headers_file" -o "$body_file" -w "%{http_code}" --max-time 20 \

Note: the suppression comment had to be placed inline inside the shell script body rather than as a step-level YAML comment, since the compiler re-serializes run: blocks and drops comments attached at the step level.

Copilot AI changed the title [WIP] Fix secret exfiltration via outbound HTTP request Suppress RGS-012 finding for pinned GitHub remote MCP handshake curl Aug 25, 2026
Copilot AI requested a review from pelikhan August 25, 2026 06:28
@pelikhan
pelikhan marked this pull request as ready for review August 25, 2026 06:32
Copilot AI balanced review requested due to automatic review settings August 25, 2026 06:32
@pelikhan
pelikhan merged commit 2a8c3f4 into main Aug 25, 2026
@pelikhan
pelikhan deleted the copilot/rgs-012-fix-secret-exfiltration-another-one branch August 25, 2026 06:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an RGS-012 suppression for the pinned GitHub remote MCP handshake.

Changes:

  • Adds an inline suppression with justification.
  • Regenerates the compiled workflow.
Show a summary per file
File Description
.github/workflows/github-remote-mcp-auth-test.md Adds the suppression marker.
.github/workflows/github-remote-mcp-auth-test.lock.yml Carries the marker into generated output.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

local response_headers_file="$2"
shift 2
local http_code
# runner-guard:ignore RGS-012 -- pinned request to the official GitHub remote MCP endpoint (api.githubcopilot.com); verifies the token authenticates and receives the response, no data is exfiltrated to an attacker-controlled host.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.8

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.

[static-analysis] RGS-012: Secret Exfiltration via Outbound HTTP Request in github-remote-mcp-auth-test.lock.yml

3 participants