Repository navigation
AST-180812 - Detect VS Code Copilot CLI sessions from GITHUB_COPILOT_… - #1604
Merged
cx-rahul-pidde merged 1 commit intoOct 30, 2026
Merged
Conversation
…INTEGRATION_ID VS Code's Copilot CLI chat sessions run the cx-devassist hooks without a VS Code PLUGIN_ROOT, so hostenv.PluginHost reported HostUnknown there and cx used the terminal scanner switches and threshold instead of the VS Code extension's cx-onboarding-ide.properties. When PLUGIN_ROOT is not set, GITHUB_COPILOT_INTEGRATION_ID=vscode-chat (set by VS Code on the Copilot CLI engine it bundles) is HostVSCode again. A PLUGIN_ROOT still decides first, so the terminal Copilot CLI and other hosts are unchanged. Matches the cx-devassist Copilot plugin's _in_vscode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cx-aniket-shinde
added a commit
that referenced
this pull request
Nov 5, 2026
* Honour the VS Code Checkmarx Self-Healing setting in Copilot agent hooks (AST-180812) (#1603) * AST-180812 - Detect VS Code Copilot CLI sessions from GITHUB_COPILOT_INTEGRATION_ID (#1604) * Feature/ast 180812 vscode copilot cli host (#1607) * Update brotli dependency to v1.2.7 (AST-189161) (#1610) * Update github.com/andybalholm/brotli from v1.2.0 to v1.2.7 (AST-189161) Indirect dependency pulled in via anchore/syft -> anchore/archiver. No API removals; archiver only uses NewWriterLevel/NewReader, which are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Update Docker base image checkmarx/bash:5.3 to latest digest (AST-189161) Bumps the SHA256-pinned base image to the 5.3-r14 build pushed on 2026-11-04. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Replace .trivyignore entries with current binary findings (AST-189161) Ignore GO-2026-5932 (x/crypto/openpgp via helm provenance), CVE-2026-78661 and CVE-2026-97045 (x/net/html via syft Maven cataloger). Remove the previous Wolfi base-image and syft/docker entries, which no longer apply. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Restore syft and docker entries in .trivyignore (AST-189161) CVE-2026-33481 (syft temp cleanup) and CVE-2026-33997 (moby plugin privilege bypass) are still reported against the binary. Neither has an adoptable fix: syft >= 1.42.3 reintroduces the binary-size regression reverted in AST-188320 and docker/docker has no 29.x release on its module path. Justifications and reachability analysis are recorded in the file. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Bump golang.org/x/net to v0.62.0 and trim .trivyignore (AST-189161) Bump the indirect golang.org/x/net dependency to v0.62.0, which fixes CVE-2026-78661 and CVE-2026-97045, so their ignore entries are dropped. Keep only the ignores that cannot be fixed directly: GO-2026-5932 (x/crypto openpgp, via helm), CVE-2026-33481 (syft) and CVE-2026-33997 (docker). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: atishj99 <atish.jadhav@checkmarx.com> * revret exclude git config changes (#1609) Co-authored-by: Aniket Shinde <aniket.shinde@checkmarx.com> * Use self-repository syntax for reusable workflow in nightly-parallel (AST-189161) Replace `uses: ./.github/workflows/ci-tests.yml` with the `$/` form to satisfy the zizmor `self-repository` audit (added in zizmor v1.30.0). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Anurag Dalke <anurag.dalke@checkmarx.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: atishj99 <atish.jadhav@checkmarx.com> Co-authored-by: Sumit Morchhale <sumit.morchhale@checkmarx.com> Co-authored-by: Aniket Shinde <aniket.shinde@checkmarx.com>
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.
…INTEGRATION_ID
VS Code's Copilot CLI chat sessions run the cx-devassist hooks without a VS Code PLUGIN_ROOT, so hostenv.PluginHost reported HostUnknown there and cx used the terminal scanner switches and threshold instead of the VS Code extension's cx-onboarding-ide.properties.
When PLUGIN_ROOT is not set, GITHUB_COPILOT_INTEGRATION_ID=vscode-chat (set by VS Code on the Copilot CLI engine it bundles) is HostVSCode again. A PLUGIN_ROOT still decides first, so the terminal Copilot CLI and other hosts are unchanged. Matches the cx-devassist Copilot plugin's _in_vscode.
By submitting this pull request, you agree to the terms within the Checkmarx Code of Conduct. Please review the contributing guidelines for guidance on creating high-quality pull requests.
Description
Please provide a summary of the changes and the related issue. Include relevant motivation and context.
Type of Change
Related Issues
Link any related issues or tickets.
Checklist
Screenshots (if applicable)
Add screenshots to help explain your changes.
Additional Notes
Add any other relevant information.