Replace vulnerable ast-grep MCP container - #51718
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix vulnerabilities in mcp/ast-grep:latest
Replace vulnerable ast-grep MCP container
Aug 10, 2026
pelikhan
marked this pull request as ready for review
August 10, 2026 10:05
Contributor
There was a problem hiding this comment.
Pull request overview
Replaces the vulnerable ast-grep container with the npm MCP server and removes obsolete container pins.
Changes:
- Uses
ast-grep-mcp@0.0.2throughnpx. - Regenerates affected workflow locks without the vulnerable image.
- Adds regression coverage for removed pin data.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/shared/mcp/ast-grep.md |
Configures the npm MCP server. |
.github/workflows/mcp-inspector.lock.yml |
Regenerates inspector workflow. |
.github/workflows/go-pattern-detector.lock.yml |
Regenerates detector workflow. |
.github/aw/actions-lock.json |
Removes the stale container pin. |
pkg/actionpins/data/action_pins.json |
Removes the embedded pin. |
pkg/workflow/data/action_pins.json |
Removes duplicate workflow pin data. |
pkg/actionpins/actionpins_internal_test.go |
Verifies the pin remains absent. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Balanced
| container: "mcp/ast-grep" | ||
| version: "latest" | ||
| command: "npx" | ||
| args: ["ast-grep-mcp@0.0.2"] |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
The shared ast-grep MCP workflow import used
mcp/ast-grep:latest, which was flagged with Critical/High container vulnerabilities and license findings. This change removes that container from workflow execution and embedded pin data.MCP configuration
Generated workflow locks
shared/mcp/ast-grep.md.mcp/ast-grep:latestfrom generated container manifests.Pin data
mcp/ast-grep:latest@sha256:...entry from repository action/container pin data.Regression coverage