Skip to content

docs: drop secrets: inherit from remaining consumer examples - #113

Merged
dkastl merged 2 commits into
mainfrom
docs/explicit-secrets-examples
Aug 5, 2026
Merged

docs: drop secrets: inherit from remaining consumer examples#113
dkastl merged 2 commits into
mainfrom
docs/explicit-secrets-examples

Conversation

@dkastl

@dkastl dkastl commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to geolonia/geonicdb-deployments#30: the workflow templates were already hardened to pass dispatch secrets explicitly, but several documented consumer examples still recommended secrets: inherit, so repos that copy them keep getting zizmor secrets-inherit warnings (CodeRabbit flagged this in geolonia/geonicdb-deployments#23).

Changes (docs/comments only, no workflow behavior changes):

  • .github/workflows/reusable-route-issue.yml — header consumer example now shows the explicit two-secret mapping
  • docs/workflows/route-issue.md — both usage examples updated the same way
  • docs/workflows.md — troubleshooting note reworded: callers pass secrets explicitly, so check the caller forwards the declared secret
  • .serena/memories/reusable_workflows.md — caller-side conventions now state the explicit-mapping rule (and the techdocs pinning example no longer shows a secrets line, since that reusable needs none)

All remaining secrets: inherit mentions in the repo are negative guidance ("do not use").

Summary by CodeRabbit

  • Documentation
    • Updated reusable workflow guidance to require explicitly passing declared secrets.
    • Replaced inherited secrets with explicit mappings for operations dispatch credentials in workflow examples.
    • Added troubleshooting guidance for secret visibility and configuration.
    • Clarified the required secret mappings in all relevant workflow documentation.
  • Chores
    • Updated the reusable workflow example to use only the required secrets, improving configuration clarity and control.

The workflow templates already pass dispatch secrets explicitly, but the
consumer example in the reusable-route-issue.yml header, both examples in
docs/workflows/route-issue.md, the troubleshooting note in
docs/workflows.md, and the Serena caller-conventions memory still showed
secrets: inherit. Repos that copy these examples get zizmor
secrets-inherit warnings (e.g. geolonia/geonicdb-deployments#23, fixed in
geonicdb-deployments#30). Align them all with the explicit two-secret
mapping.
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 78c0e287-a263-4870-9641-35392f90d3ee

📥 Commits

Reviewing files that changed from the base of the PR and between 3a0f8e9 and 797fde1.

📒 Files selected for processing (1)
  • .serena/memories/reusable_workflows.md

Walkthrough

Reusable workflow examples and guidance now pass OPS_DISPATCH_CLIENT_ID and OPS_DISPATCH_APP_PRIVATE_KEY explicitly instead of using secrets: inherit.

Changes

Reusable workflow secret configuration

Layer / File(s) Summary
Explicit dispatch secret mappings
.github/workflows/reusable-route-issue.yml, .serena/memories/reusable_workflows.md, docs/workflows.md, docs/workflows/route-issue.md
Workflow callers and documentation now map the two required dispatch secrets explicitly. The options example retains exclusive_routing. Troubleshooting guidance retains organization-level secret visibility checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: removing secrets: inherit from remaining consumer examples.
Description check ✅ Passed The description explains the motivation, affected files, scope, and documentation-only impact; related issues are referenced in the summary.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/explicit-secrets-examples

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

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🛡️ Security suite

Check Result
✅ Supply chain · bumblebee No exposure matches
✅ Secrets · betterleaks No secrets in diff
✅ Action pinning · pinact All actions pinned
✅ Actions audit · zizmor No findings

Note

All security checks passed.

Updated for 797fde1 · workflow run

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.serena/memories/reusable_workflows.md:
- Around line 49-57: Close the YAML code fence opened before the reusable
workflow example immediately after the uses example, before the prose
introducing the secrets guidance; preserve the existing YAML content and ensure
the following guidance starts outside that code block.
- Around line 51-57: Update the secret-passing example in the reusable workflow
guidance to identify it specifically as belonging to reusable-route-issue.yml,
or replace the hard-coded OPS_DISPATCH secret names with generic placeholders
while preserving the rule to pass only declared secrets.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 584db330-029c-42a0-84ab-be1fa49a7477

📥 Commits

Reviewing files that changed from the base of the PR and between a7f7ab9 and 3a0f8e9.

📒 Files selected for processing (4)
  • .github/workflows/reusable-route-issue.yml
  • .serena/memories/reusable_workflows.md
  • docs/workflows.md
  • docs/workflows/route-issue.md

Comment on lines +49 to +57
```

When a reusable declares secrets, pass exactly those — never `secrets: inherit`
(zizmor secrets-inherit):

```yaml
secrets:
OPS_DISPATCH_CLIENT_ID: ${{ secrets.OPS_DISPATCH_CLIENT_ID }}
OPS_DISPATCH_APP_PRIVATE_KEY: ${{ secrets.OPS_DISPATCH_APP_PRIVATE_KEY }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Close the preceding YAML code block.

The code fence opened at Line 45 is not closed before the new guidance. Add the closing ````` after the uses: example. Otherwise, the prose and second YAML fence render incorrectly.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.serena/memories/reusable_workflows.md around lines 49 - 57, Close the YAML
code fence opened before the reusable workflow example immediately after the
uses example, before the prose introducing the secrets guidance; preserve the
existing YAML content and ensure the following guidance starts outside that code
block.

Comment thread .serena/memories/reusable_workflows.md Outdated
The caller-conventions section is generic, but the example hard-coded the
route-issue dispatch secrets without saying so; name the workflow so
callers of other reusables don't copy mismatched secret names. The other
CR finding (unclosed fence) is a false positive — both fences close.
@dkastl
dkastl merged commit eaf75ba into main Aug 5, 2026
6 checks passed
@dkastl
dkastl deleted the docs/explicit-secrets-examples branch August 5, 2026 03:35
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