fix(ci): resolve opencode workflow failures — PAT permissions, git identity, validation#474
Conversation
…entity, validation - Switch audit workflow checkout and GH_TOKEN from github.token to OPENCODE_PAT (github.token is read-only for scheduled runs, causing 403 on push and issue creation) - Add git identity config (user.name/email) before opencode steps in both workflows (prevents 'empty ident name' / 'Author identity unknown' fatal errors) - Add PAT push permission pre-check in test-writer (fails fast instead of 6+ min wasted) - Add module directory validation step in audit workflow - Document required PAT scopes in both workflow headers
📋 SummaryNo linked issues. This PR fixes CI workflow failures for the 📌 Review Metadata
This PR addresses workflow failures in two GitHub Actions workflows. The changes are straightforward and correct. 🔴 Critical Issues (Must Fix - Blocks Merge)None identified. ✅ All previously reported critical issues have been resolved. (N/A - no previous automated reviews)
|

Summary
github.tokenis read-only for scheduled runs, causing 403 permission denied on bothgit pushandgh issue creategit config user.name/emailbefore opencode steps in both workflows — preventsfatal: empty ident name/Author identity unknowncrashRoot causes identified
Permission denied (403)ongit pushOPENCODE_PATlacksreposcope for pushAuthor identity unknowngit config user.name/emailToken lacks 'issues' write permissiongithub.tokenused forghoperationsOPENCODE_PATFailed to get summary from agentTest plan