Repository navigation
ci(techdocs): make publish-techdocs template standalone by default - #68
Conversation
Drop the workflow_call trigger from the publish-techdocs starter template so the standalone push + workflow_dispatch path is the default. Publishing on a docs/** push is the natural trigger; techdocs-on-release is an opt-in composition that a repo adds back with an explicit workflow_call secrets contract. Also switch the publish job from secrets: inherit to passing the two AWS account secrets explicitly (AWS_ACCOUNT_ID, TECHDOCS_AWS_ACCOUNT_ID), and refresh the docs example + add a note on the opt-in release composition.
|
Warning Review limit reached
More reviews will be available in 26 minutes and 56 seconds. 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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Secret Leak CheckOK No secrets detected in this PR's diff. |
What
Make the
publish-techdocsstarter template standalone by default:workflow_calltrigger fromworkflow-templates/publish-techdocs.yml. Publishing on adocs/**push (plusworkflow_dispatch) is the natural trigger; techdocs-on-release is an opt-in composition.publishjob fromsecrets: inheritto passing the two AWS account secrets explicitly (AWS_ACCOUNT_ID,TECHDOCS_AWS_ACCOUNT_ID, both optional in the reusable).workflow_callwith an explicitsecretscontract for repos that want the release composition.docs/workflows/publish-techdocs.mdto match (explicit secrets example + composition note).Why
A callable workflow that exposes
workflow_callwithout declaring asecrets:contract only receives secrets on the call path viasecrets: inherit. Most installs never call the template as a reusable, so shipping the trigger (andsecrets: inherit) by default is unused surface and over-broad secret sharing. Standalone-by-default is the safe baseline; the composition is opt-in and explicit.Scope
Template + its doc only. This is the source fix; per-repo installed copies are swept separately. The reusable workflow itself is unchanged.
Test plan
actionlintclean on the template.docs/**push thepublishjob calls the reusable;${{ secrets.AWS_ACCOUNT_ID }}/${{ secrets.TECHDOCS_AWS_ACCOUNT_ID }}resolve from repo/org secrets (empty if unset, and the reusable falls back viaAWS_ACCOUNT_ID || TECHDOCS_AWS_ACCOUNT_ID).