fix(ci): add use_github_token to opencode workflows for Blacksmith runner#330
Conversation
…nner compatibility Blacksmith runners use blacksmith-sh[bot] identity which lacks write permissions. Setting use_github_token: true tells the opencode action to use the standard GITHUB_TOKEN (which has the correct permissions) instead of attempting OIDC app token exchange.
📋 SummaryThis PR addresses issue #329 by fixing the "blacksmith-sh[bot] does not have write permissions" error in all three opencode GitHub Action workflows. The fix adds PR Quality: This is a minimal, surgical fix that directly addresses the root cause. The changes are consistent across all three affected workflows. 🔴 Critical Issues (Must Fix - Blocks Merge)✅ All previously reported critical issues have been resolved. (No previous reviews found.) None identified in current changes.
|
| Principle | Score | Notes |
|---|---|---|
| Single Responsibility | 9/10 | Each workflow has a clear, focused purpose. |
| Open/Closed | 8/10 | The configuration addition is non-breaking and follows the action's API contract. |
| Liskov Substitution | N/A | No inheritance or polymorphism in YAML workflows. |
| Interface Segregation | 9/10 | Each workflow configures only the parameters it needs. |
| Dependency Inversion | 8/10 | Workflows depend on abstract action interfaces, not implementation details. |
| Average | 8.5 |
🎯 Final Assessment
Overall Confidence Score: 95%
How to interpret: 81-100%: High confidence, ready to merge or with trivial fixes.
Confidence Breakdown:
- Code Quality: 95% (Simple configuration change, follows YAML best practices)
- Completeness: 100% (All three affected workflows are fixed consistently)
- Risk Level: 95% (Minimal risk - only adds a boolean flag to action configuration)
- Test Coverage: N/A (CI workflow changes cannot be unit tested, but the fix directly addresses the reported issue)
Merge Readiness:
- All critical issues resolved
- SOLID average score >= 6.0
- Overall confidence >= 60%
- No security concerns
- Tests present and passing (if applicable)
Verdict:
MERGE
This PR successfully fixes the Blacksmith runner permission issue with a minimal, targeted change. The use_github_token: "true" parameter correctly instructs the opencode action to use the standard GITHUB_TOKEN, which has the necessary issues: write permission as configured in each workflow's permissions block.

Summary
Fixes the
User blacksmith-sh[bot] does not have write permissionserror in all opencode GitHub Action workflows.Root cause: The
anomalyco/opencode/githubaction defaults to OIDC app token exchange. On Blacksmith runners, this resolves toblacksmith-sh[bot]identity which lacks write permissions on the repo.Fix: Add
use_github_token: "true"to all three opencode action invocations. This tells the action to use the standardGITHUB_TOKEN(which hasissues: writepermission in the job config) and skip the collaborator permission check.Files Changed
opencode-triage.yml— issue triage on issue openopencode-audit.yml— scheduled audit scansopencode.yml— comment-triggered/occommandsRelates to #329 (failed triage run example).