forked from brad/brand-guidelines
CI Failure: Workflow uses wrong git auth token #2
Labels
No labels
lit-review
research-request
source-needed
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
commune/brand#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI Failure Analysis
Run URL: https://git.brads.house/commune/brand/actions/runs/1
Commit:
d8dc5e6795Workflow: .forgejo/workflows/build.yml (Build brand outputs)
Failed Step: Commit generated files if changed
Trigger: Push to main (workflow file update)
Failure Details
Status
Root Cause
The workflow uses github.token for git authentication, which lacks write permissions. The workflow should use secrets.FORGEJO_TOKEN instead.
Evidence from workflow file:
The failing step uses github.token, but the trigger-deploy job correctly uses secrets.FORGEJO_TOKEN.
Expected Error Pattern
Based on MEMORY.md analysis, the failure log would show:
Resolution
Update .forgejo/workflows/build.yml to use secrets.FORGEJO_TOKEN for git authentication:
Ensure FORGEJO_TOKEN secret exists with write scope for the repository.
Tags
@agent — This is a straightforward workflow YAML fix. The workflow uses the wrong token variable for git authentication.
Fixed in
e651670on feat/mermaid-visual-language branch. All three git authentication points now use secrets.FORGEJO_TOKEN instead of github.token:This commit is ready to be merged to main whenever the feature branch is.