Skip to content

ci(publish): use GitHub App token for release commit-back - #6

Merged
gmasci-ca merged 2 commits into
mainfrom
ci/release-github-app-token
Jul 10, 2026
Merged

gmasci-ca merged 2 commits into
mainfrom
ci/release-github-app-token

Conversation

@gmasci-ca

Copy link
Copy Markdown
Contributor

What

Uniforms the NuGet publish workflow with the client (npm) repo: the stable-release
version commit-back and `v` tag push are now authenticated with a GitHub App
installation token
instead of `GITHUB_TOKEN`.

Why

`main` has a branch-protection ruleset (PR + CI required). The built-in `GITHUB_TOKEN`
cannot bypass it, so the automated commit-back on stable releases would fail. A GitHub App
token can bypass the rule.

Changes

  • Add `actions/create-github-app-token@v1` step.
  • `actions/checkout` uses the app token (so the later `git push` bypasses protection).

Required secrets

  • `CODEARCHITECTS_RELEASE_BOT_APP_ID`
  • `CODEARCHITECTS_RELEASE_BOT_PRIVATE_KEY`

(plus `NUGET_API_KEY` for the actual publish)

🤖 Generated with Claude Code

gmasci-ca and others added 2 commits July 10, 2026 12:08
…otection

The stable-release commit-back + tag push must bypass the protected-main ruleset
(PR required). GITHUB_TOKEN cannot; a GitHub App installation token can. Adds the
create-github-app-token step and uses it for checkout/push.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ProduceReferenceAssembly=false only moved the missing file from ref/ to bin/;
the parallel multi-TFM ProjectReference race persisted. Building with a single
MSBuild node forces dependency-ordered builds and eliminates it deterministically.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmasci-ca
gmasci-ca merged commit d5b96ad into main Jul 10, 2026
2 checks passed
@gmasci-ca
gmasci-ca deleted the ci/release-github-app-token branch July 10, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants