8000 ci(release): least-privilege caller in release-on-tag source by dkastl · Pull Request #69 · geolonia/.github · GitHub
[go: up one dir, main page]

Skip to content

ci(release): least-privilege caller in release-on-tag source - #69

Merged
dkastl merged 1 commit into
mainfrom
chore/release-caller-least-privilege
Jun 25, 2026
Merged

dkastl merged 1 commit into
mainfrom
chore/release-caller-least-privilege

Conversation

@dkastl
@dkastl dkastl commented Jun 25, 2026
Copy link
Copy Markdown
Contributor

What

Make the release-on-tag caller least-privilege at the source: the starter template, this repo's own self-release workflow, and the docs example.

  • publish job gets permissions: { contents: write } (was relying on whatever the caller granted).
  • Pass WORKFLOWS_CLIENT_ID + WORKFLOWS_APP_PRIVATE_KEY explicitly instead of secrets: inherit.

Why

reusable-release-auto-on-tag.yml declares it needs only contents: write and the two WORKFLOWS_* GitHub App secrets. secrets: inherit shared every repo/org secret with the called workflow, and callers commonly granted broad workflow-level permissions (id-token, models) the release job never uses. This fixes the pattern where new installs are copied from.

Scope

Template + .github's own self-caller + docs. Per-repo installed callers are swept separately. .github-private's self-caller is a sibling PR.

Test plan

  • actionlint clean.
  • The WORKFLOWS_* secrets are org-level, so the explicit mapping resolves exactly as inherit did.
  • Next vX.Y.Z tag on this repo exercises the self-caller (it cut v1.17.1 recently).

The reusable-release-auto-on-tag workflow needs only contents: write and
the two WORKFLOWS_* GitHub App secrets. Update the starter template, this
repo's own self-release caller, and the docs example to grant the
permission on the publish job and pass those secrets explicitly instead
of secrets: inherit (which shared all repo/org secrets with the called
workflow).
@coderabbitai
coderabbitai Bot commented Jun 25, 2026
Copy link
Copy Markdown

Warning

Review limit reached

@dkastl, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 minutes. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 73c92f0a-e135-49c4-942f-0fd50c786841

📥 Commits

Reviewing files that changed from the base of the PR and between 419bfe9 and 7fbe883.

📒 Files selected for processing (3)
  • .github/workflows/release-auto-on-tag.yml
  • docs/workflows/release-on-tag.md
  • workflow-templates/release-auto-on-tag.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-caller-least-privilege

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

@github-actions
Copy link
Copy Markdown
Contributor

Secret Leak Check

OK No secrets detected in this PR's diff.

@dkastl
dkastl merged commit 676d763 into main Jun 25, 2026
2 checks passed
75E0 @dkastl
dkastl deleted the chore/release-caller-least-privilege branch June 25, 2026 21:47
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

0