Skip to content

fix(scaffold): mcp-server release is PAT-free and protected-main-safe#78

Merged
TMHSDigital merged 1 commit into
mainfrom
fix/template-release-pat-free
Jun 15, 2026
Merged

fix(scaffold): mcp-server release is PAT-free and protected-main-safe#78
TMHSDigital merged 1 commit into
mainfrom
fix/template-release-pat-free

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

PR #77's mcp-server release template auto-bumped and pushed a commit to main, which the standard main-protection ruleset (empty bypass) rejects with 403 — a born mcp-server repo could never release or publish. (Found while shipping local-ai-mcp.)

Replace with the validated tag-only model:

  • Bump the version in the PR; release.yml uses the default GITHUB_TOKEN to push only tags (never main) and create the GitHub Release, then dispatches publish.yml (a GITHUB_TOKEN release does not auto-trigger it; publish.yml is idempotent). No personal-access-token dependency.
  • AGENTS.md.j2 / CLAUDE.md.j2 mcp-server version guidance updated to match.

Verified: pytest 238 passed / 1 skipped; rendered mcp-server release.yml has 0 RELEASE_PAT, 0 pushes to main, dispatches publish, uses GITHUB_TOKEN. No STANDARDS_VERSION/VERSION change ([skip version]).

… [skip version]

The mcp-server release template pushed a version-bump commit to main, which
the standard main-protection ruleset (empty bypass) rejects with 403, so a
born repo could never release/publish. Replace with the validated tag-only
model: bump the version in the PR; release.yml uses the default GITHUB_TOKEN
to push only tags (never main) and create the release, then dispatches
publish.yml (a GITHUB_TOKEN release does not trigger it; publish.yml is
idempotent). No dependency on a personal access token.

AGENTS.md.j2 and CLAUDE.md.j2 mcp-server version guidance updated to match
(bump in the PR; CI never writes to main). No STANDARDS_VERSION/VERSION change.

Signed-off-by: fOuttaMyPaint <tmhospitalitystrategies@gmail.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@TMHSDigital TMHSDigital merged commit c8defd6 into main Jun 15, 2026
14 checks passed
@TMHSDigital TMHSDigital deleted the fix/template-release-pat-free branch June 15, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant