8000 ci(techdocs): make publish-techdocs template standalone by default by dkastl · Pull Request #68 · geolonia/.github · GitHub
[go: up one dir, main page]

Skip to content

ci(techdocs): make publish-techdocs template standalone by default - #68

Merged
dkastl merged 1 commit into
mainfrom
chore/techdocs-template-drop-workflow-call
Jun 25, 2026
Merged

dkastl merged 1 commit into
mainfrom
chore/techdocs-template-drop-workflow-call

Conversation

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

What

Make the publish-techdocs starter template standalone by default:

  • Drop the workflow_call trigger from workflow-templates/publish-techdocs.yml. Publishing on a docs/** push (plus workflow_dispatch) is the natural trigger; techdocs-on-release is an opt-in composition.
  • Switch the publish job from secrets: inherit to passing the two AWS account secrets explicitly (AWS_ACCOUNT_ID, TECHDOCS_AWS_ACCOUNT_ID, both optional in the reusable).
  • Add a commented block showing how to re-add workflow_call with an explicit secrets contract for repos that want the release composition.
  • Refresh docs/workflows/publish-techdocs.md to match (explicit secrets example + composition note).

Why

A callable workflow that exposes workflow_call without declaring a secrets: contract only receives secrets on the call path via secrets: inherit. Most installs never call the template as a reusable, so shipping the trigger (and secrets: 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

  • actionlint clean on the template.
  • Standalone path: on docs/** push the publish job 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 via AWS_ACCOUNT_ID || TECHDOCS_AWS_ACCOUNT_ID).

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.
@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 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 @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: ce0b10c5-5f9b-4355-82fa-489f2399648e

📥 Commits

Reviewing files that changed from the base of the PR and between eb33e7f and 6072dfb.

📒 Files selected for processing (2)
  • docs/workflows/publish-techdocs.md
  • workflow-templates/publish-techdocs.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/techdocs-template-drop-workflow-call

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 419bfe9 into main Jun 25, 2026
2 checks passed
@dkastl
dkastl deleted the chore/techdocs-template-drop-workflow-call branch September 17, 2026 00:43
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