Skip to content

ci: read-only build job, write token confined to the tag release job - #506

Merged
erwan-joly merged 1 commit into
masterfrom
infra/split-release-job
Aug 30, 2026
Merged

ci: read-only build job, write token confined to the tag release job#506
erwan-joly merged 1 commit into
masterfrom
infra/split-release-job

Conversation

@erwan-joly

Copy link
Copy Markdown
Contributor

Same hardening review feedback applied across the org's other package repos:

  • top-level permissions: contents: read; build/test run PR code with no write token and persist-credentials: false
  • packing, the NuGet push and the release upload move to a release job gated on startsWith(github.ref, 'refs/tags/') with needs: build — only that job gets contents: write
  • softprops/action-gh-release@v3 (v2 runs on the unsupported Node 20 runtime)

Behavior on a version tag is unchanged: tests still gate the release, the package version still comes from the tag.

🤖 Generated with Claude Code

Build and test ran pull-request code in a job holding a contents: write
token that checkout also persisted into .git/config. Validation now runs
in a read-only job with persist-credentials: false; packing, the NuGet
push and the release upload move to a tag-gated job that alone gets
contents: write. action-gh-release bumped to v3 for the current runner
runtime.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 43 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e2098bb7-4e93-422b-9890-f8e2fb1dae58

📥 Commits

Reviewing files that changed from the base of the PR and between ef4a113 and 02901d1.

📒 Files selected for processing (1)
  • .github/workflows/dotnet.yml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@erwan-joly
erwan-joly merged commit 5caf2c1 into master Aug 30, 2026
4 checks passed
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.

1 participant