Use published ghcr.io/github/gh-aw-mcpg:v0.2.2 for repo-assist baseli…#2388
Use published ghcr.io/github/gh-aw-mcpg:v0.2.2 for repo-assist baseli…#2388
Conversation
…ne test Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the Repo Assist locked workflow to use a published ghcr.io/github/gh-aw-mcpg container image instead of building a local :local image during the run, simplifying the baseline execution path.
Changes:
- Removes the Rust toolchain + WASM guard build + local Docker build steps.
- Pulls
ghcr.io/github/gh-aw-mcpg:v0.2.2and uses it for the DIFC proxy and MCP gateway container command.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: Pull published container image | ||
| run: | | ||
| # Install Rust toolchain for WASM guard build | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable | ||
| source "$HOME/.cargo/env" | ||
| rustup target add wasm32-wasip1 | ||
|
|
||
| # Build the WASM guard | ||
| cd guards/github-guard/rust-guard | ||
| cargo build --release --target wasm32-wasip1 | ||
| cp target/wasm32-wasip1/release/github_guard.wasm ../github-guard-rust.wasm | ||
| cd ../../.. | ||
|
|
||
| # Build the Docker image with :local tag | ||
| docker build -t ghcr.io/github/gh-aw-mcpg:local . | ||
| docker pull ghcr.io/github/gh-aw-mcpg:v0.2.2 |
There was a problem hiding this comment.
The gh-aw-mcpg image reference is now hardcoded as ghcr.io/github/gh-aw-mcpg:v0.2.2 in multiple places (the pull step, the proxy docker run, and MCP_GATEWAY_DOCKER_COMMAND). To reduce future drift when bumping versions, consider defining a single env var for the image and referencing it everywhere (and optionally reusing the existing download_docker_images.sh helper here for consistency with later image prefetching).
…ne test