feat: add official MCP Go SDK HOL Guard receiving middleware proof #3
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
| name: Official MCP Go SDK HOL Guard integration | |
| on: | |
| pull_request: | |
| paths: | |
| - 'integrations/mcp-sdk-go-hol-guard/**' | |
| - '.github/workflows/mcp-sdk-go-hol-guard.yml' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'integrations/mcp-sdk-go-hol-guard/**' | |
| - '.github/workflows/mcp-sdk-go-hol-guard.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| contract: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: '1.25.x' | |
| cache-dependency-path: integrations/mcp-sdk-go-hol-guard/go.mod | |
| - name: Resolve pinned dependencies | |
| working-directory: integrations/mcp-sdk-go-hol-guard | |
| run: go mod tidy | |
| - name: Run official MCP Go SDK policy middleware contract tests | |
| working-directory: integrations/mcp-sdk-go-hol-guard | |
| run: go test -v ./... |