Repository navigation
180 lines (170 loc) · 8.26 KB
/
Copy pathvalidate.yml
File metadata and controls
180 lines (170 loc) · 8.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
name: validate
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
# Third-party validators are pinned: the upstream repos to commits here, the npm
# packages in scripts/package-lock.json. Bump deliberately.
env:
CURSOR_PLUGINS_SHA: c7f203457c16815379130697c41e74fd202e9978 # github.com/cursor/plugins (schemas/plugin.schema.json)
XAI_MARKETPLACE_SHA: e5c73400a2ec55fa0abd1efbc8908a5aa801dcce # github.com/xai-org/plugin-marketplace (scripts/)
jobs:
manifests:
name: manifests agree with each other
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: python3 scripts/check-manifests.py
antigravity:
name: Google Antigravity (validate and install from source)
runs-on: ubuntu-latest
env:
AGY_CLI_DISABLE_AUTO_UPDATE: "true"
# Pinned from Google's CLI update manifest for linux_amd64.
AGY_BUILD: 1.5.11-6132547114106880
AGY_SHA512: dad3c015e8964fcdc1639b13b7152f4cb84cb1bde385707e2bcdf095d6f1831f4f6521199aec499cc052f9e99906b7fdbc52c273df064d5cb7c84b068ba3ce50
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Download and verify the Antigravity CLI
working-directory: ${{ runner.temp }}
run: |
curl --fail --silent --show-error --location --retry 3 \
"https://storage.googleapis.com/antigravity-public/antigravity-cli/$AGY_BUILD/linux-x64/cli_linux_x64.tar.gz" -o agy.tar.gz
echo "$AGY_SHA512 agy.tar.gz" | sha512sum --check
tar -xzf agy.tar.gz antigravity
- name: Validate the bundle and check the installed skill and MCP server
shell: bash
run: |
"$RUNNER_TEMP/antigravity" plugin validate --json . | jq -e '
.manifest == ".antigravity-plugin/plugin.json" and .components.mcpServers == 1 and .components.skills >= 1 and
all(.findings[]; .severity == "warning" and (.file == ".mcp.json" or .file == "mcp.json"))'
"$RUNNER_TEMP/antigravity" plugin install .
"$RUNNER_TEMP/antigravity" plugin list --json | jq -e '
any(.[]; .name == "stackone" and .enabled and .mcpServers == ["stackone"] and (.skills | index("stackone-actions") != null))'
claude-code:
name: Claude Code (claude plugin validate + install from source)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
# Installed outside the checkout: installing the plugin from source copies the
# whole directory, so a node_modules in it would ship with the test install.
- name: install the CLIs pinned in scripts/package-lock.json
run: |
cp scripts/package.json scripts/package-lock.json "$RUNNER_TEMP"
(cd "$RUNNER_TEMP" && npm ci)
echo "$RUNNER_TEMP/node_modules/.bin" >> "$GITHUB_PATH"
- name: validate manifests with the Claude Code CLI
run: |
claude plugin validate .claude-plugin/plugin.json
claude plugin validate .claude-plugin/marketplace.json
- name: install from this repo as a marketplace and confirm the skill and MCP server are detected
env:
CLAUDE_CONFIG_DIR: ${{ runner.temp }}/claude
run: |
claude plugin marketplace add "$PWD"
claude plugin install stackone@stackone
claude plugin details stackone@stackone | tee details.txt
grep -q "MCP servers (1)" details.txt
grep -q "Skills (2)" details.txt
grep -q "stackone-actions" details.txt
grep -q "stackone-connection" details.txt
codex:
name: Codex / ChatGPT (install from source)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
# Installed outside the checkout: installing the plugin from source copies the
# whole directory, so a node_modules in it would ship with the test install.
- name: install the CLIs pinned in scripts/package-lock.json
run: |
cp scripts/package.json scripts/package-lock.json "$RUNNER_TEMP"
(cd "$RUNNER_TEMP" && npm ci)
echo "$RUNNER_TEMP/node_modules/.bin" >> "$GITHUB_PATH"
- name: add this repo as a Codex marketplace, install, confirm the MCP server registers
env:
CODEX_HOME: ${{ runner.temp }}/codex
run: |
mkdir -p "$CODEX_HOME"
codex plugin marketplace add "$PWD"
codex plugin list | grep -q "stackone@stackone"
codex plugin add stackone@stackone
codex mcp list | tee mcp.txt
grep -E "^stackone\s+https://mcp\.stackone\.com/mcp" mcp.txt
cursor:
name: Cursor (schema from cursor/plugins)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: cursor/plugins
ref: ${{ env.CURSOR_PLUGINS_SHA }}
path: .upstream/cursor-plugins
sparse-checkout: schemas
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
- run: npm ci
working-directory: scripts
- run: node scripts/validate-cursor.mjs .upstream/cursor-plugins
grok-build:
name: Grok Build (xai-org/plugin-marketplace extractor + catalog rules)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: xai-org/plugin-marketplace
ref: ${{ env.XAI_MARKETPLACE_SHA }}
path: .upstream/xai-plugin-marketplace
sparse-checkout: scripts
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- run: python3 scripts/validate-grok.py .upstream/xai-plugin-marketplace
- name: xAI validate-catalog.py accepts our marketplace file
run: python3 .upstream/xai-plugin-marketplace/scripts/validate-catalog.py
mcp-endpoint:
name: MCP endpoint is live with OAuth discovery
runs-on: ubuntu-latest
steps:
- name: initialize without a token returns 401 + resource metadata
run: |
set -euo pipefail
hdrs=$(mktemp)
code=$(curl -s -o /dev/null -D "$hdrs" -w '%{http_code}' -X POST https://mcp.stackone.com/mcp \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"ci","version":"0"}}}')
test "$code" = "401"
grep -qi 'www-authenticate: Bearer resource_metadata=' "$hdrs"
- name: protected resource metadata points at an AS with DCR + PKCE
run: |
set -euo pipefail
prm=$(curl -sf https://mcp.stackone.com/.well-known/oauth-protected-resource)
echo "$prm" | python3 -c 'import json,sys; d=json.load(sys.stdin); assert d["resource"]=="https://mcp.stackone.com/mcp"; assert d["authorization_servers"], d'
as=$(echo "$prm" | python3 -c 'import json,sys; print(json.load(sys.stdin)["authorization_servers"][0])')
curl -sf "$as/.well-known/oauth-authorization-server" | python3 -c 'import json,sys; d=json.load(sys.stdin); assert d.get("registration_endpoint"), "no DCR"; assert "S256" in d.get("code_challenge_methods_supported",[]), "no PKCE S256"; print("ok:", d["issuer"])'