diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/scripts/external-pr-scope.js | 5 | ||||
| -rw-r--r-- | .github/workflows/external-pr-scope-guard.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/validate-plugins.yml | 6 |
3 files changed, 14 insertions, 3 deletions
diff --git a/.github/scripts/external-pr-scope.js b/.github/scripts/external-pr-scope.js index 705a18a3..cf31e441 100644 --- a/.github/scripts/external-pr-scope.js +++ b/.github/scripts/external-pr-scope.js @@ -69,7 +69,10 @@ function analyze({ changedFiles, before, after, liveRepos }) { problems.push('makes no in-scope change (expected additions to marketplace.json)'); } + const unvalidated = []; for (const name of added) { + // Command sources have no repo URL to validate; report them so a reviewer checks them by hand. + if (after[name] && after[name].source && after[name].source.source === 'command') { unvalidated.push(name); continue; } const u = after[name] && after[name].source && after[name].source.url; if (!u) { problems.push(`added "${name}" has no source.url to validate`); continue; } const r = normalizeRepo(u); @@ -79,7 +82,7 @@ function analyze({ changedFiles, before, after, liveRepos }) { } } - return { ok: problems.length === 0, problems, added, removed, modified, liveRepoCount: liveRepos.size }; + return { ok: problems.length === 0, problems, added, removed, modified, unvalidated, liveRepoCount: liveRepos.size }; } async function readPlugins(github, owner, repo, ref) { diff --git a/.github/workflows/external-pr-scope-guard.yml b/.github/workflows/external-pr-scope-guard.yml index 3d67296f..683e178b 100644 --- a/.github/workflows/external-pr-scope-guard.yml +++ b/.github/workflows/external-pr-scope-guard.yml @@ -51,4 +51,8 @@ jobs: ); return; } - console.log(`Scope guard passed: adds ${result.added.join(', ') || 'none'}, all from repos already live here.`); + const unvalidated = result.unvalidated || []; + if (unvalidated.length) { + core.warning(`Command-source entries are not repo-validated; review manually: ${unvalidated.join(', ')}`); + } + console.log(`Scope guard passed: adds ${result.added.join(', ') || 'none'}${unvalidated.length ? '' : ', all from repos already live here'}.`); diff --git a/.github/workflows/validate-plugins.yml b/.github/workflows/validate-plugins.yml index 83abae98..cf4071c1 100644 --- a/.github/workflows/validate-plugins.yml +++ b/.github/workflows/validate-plugins.yml @@ -80,11 +80,15 @@ jobs: with: fetch-depth: 0 - - uses: anthropics/claude-plugins-community/.github/actions/validate-plugins@426e469f322952061102b286b378c0c9733a0934 + - uses: anthropics/claude-plugins-community/.github/actions/validate-plugins@163301d1904c0a994539f5226ce0fcd65b8652bf with: marketplace-path: .claude-plugin/marketplace.json # Official curated marketplace: SHA-pin (I5) is a HARD error. # I8/I11 are warnings until the 15 known vendored-path/name issues # are cleaned up (see PR body); tighten to "I1 I3" after. warn-invariants: "I1 I3 I8 I11" + # Plugins resolved by a local command instead of a git repo (no sha to + # pin). Each name here is a listing decision: add one only with + # marketplace-ops sign-off. + command-exempt: "xcode" claude-cli-version: latest |
