Commit Graph

10 Commits

Author SHA1 Message Date
Ayaan Gazali bf30ab5431 ci(conformance): post fork scores from the workflow_run path (#2310)
Review feedback on #2310: rather than skipping the score comment for
forks, make the workflow_run companion the only writer and teach it to
resolve fork pull requests.

conformance.yml's report-conformance job is removed. It ran in the
unprivileged pull_request context, so on a fork PR it could only fail
with "Resource not accessible by integration". conformance-comment.yml
already runs in the privileged workflow_run context and posted the Python
score on those same fork PRs.

Its TypeScript path could not, because it resolved the pull request from
workflow_run.pull_requests[0], which GitHub leaves empty for
fork-originated runs. It now resolves from the run's own head:

  head = `${run.head_repository.owner.login}:${run.head_branch}`

and only comments when an open pull request at that head still points at
run.head_sha, so a slow run cannot overwrite a newer result. The pull
request number is never read from the downloaded artifact, which a fork
controls.

Verified the resolution against a live fork PR:

  #2350 head=ayaangazali:docs/cli-readme sha=f1fa0469
  resolved #2350 head_sha=f1fa0469
2026-08-30 10:43:22 -07:00
Enrico Toniato 173b2d54a2 fix: make canary conformance release evidence explicit (#2205) 2026-08-09 12:58:06 +02:00
Enrico 668a312100 add standalone WebSocket tunnel package 2026-08-06 15:22:59 +02:00
Andrew Khadder 52f535ca53 test(conformance): add MCP v2 TypeScript coverage (#2148)
* test(conformance): add MCP v2 TypeScript coverage

* test(conformance): cover legacy and modern TypeScript

* fix(client): allow anonymous modern servers

* fix(server): accept anonymous client connections
2026-08-05 15:59:55 -07:00
Pietro Zullo 30b23271d5 fix(python): respect configured inspector path (#1176)
* fix(python): respect configured inspector path

* fix(python): treat inspector path as a base prefix

* fix(python): format inspector fixes for ruff

* fix(ci): run conformance with node 22

* fix(ci): fail conformance runs with empty results

* chore(ci): drop inline conformance result validation

* docs(python): clarify inspector path behavior
2026-03-09 14:24:53 +01:00
Enrico Toniato e6b082e527 Update conformance-comment workflow to use published action
workflow_run triggers always use the workflow from the default branch,
so this needs to be on main for PR comments to work correctly.
2025-12-08 17:10:26 +01:00
Enrico Toniato 27b519e01e fix: revert comment workflow to PR-only events
- Comment workflow only runs for pull_request events (not push)
- For push events, there's no PR to comment on
- Conformance workflow already runs on all branch pushes for iteration
- Badges remain branch-specific (only updated for main/canary pushes)
2025-12-04 10:42:40 +01:00
Enrico Toniato c1ddfd3c62 feat: allow conformance comment workflow to run on push events
- Remove pull_request-only restriction from workflow trigger
- Make PR metadata download and comment posting conditional
- Workflow now runs for both push and pull_request events
- For push events, workflow completes without posting comment
- Badges remain branch-specific per existing logic in conformance.yml
2025-12-04 10:36:35 +01:00
Enrico Toniato 68ccbbc673 fix: prevent code injection in conformance-comment workflow
Use environment variables instead of direct string interpolation to pass
PR metadata to the github-script action, preventing potential code injection
from untrusted input.

Addresses CodeQL security findings.
2025-12-04 10:30:32 +01:00
Enrico Toniato 8ae50c04a5 fix: enable conformance comments on forked PRs with two-workflow pattern
- Split conformance workflow into test execution and comment posting
- Created conformance-comment.yml with workflow_run trigger for full permissions
- Upload PR metadata and parsed results as artifacts
- Updated badge labels to 'MCP Conformance (TS)' and 'MCP Conformance (PY)'
- Fixed badge colors: green at 100%, yellow ≥60%, red <60%
- Resolves permission errors when posting comments on forked PRs
2025-12-04 10:19:47 +01:00