Skip to content

Disable use of GITHUB_TOKEN in opencode GitHub Action#190

Merged
Jordonbc merged 2 commits intoDevfrom
codex/fix-opencode-workflow-error-7dockj
Mar 19, 2026
Merged

Disable use of GITHUB_TOKEN in opencode GitHub Action#190
Jordonbc merged 2 commits intoDevfrom
codex/fix-opencode-workflow-error-7dockj

Conversation

@Jordonbc
Copy link
Collaborator

Motivation

  • Prevent the opencode action from using the repository GITHUB_TOKEN and enforce use of external API keys for security.

Description

  • Remove the GITHUB_TOKEN environment variable and set use_github_token: false for both the primary and fallback opencode steps in .github/workflows/opencode.yml.

Testing

  • No automated tests were run for this PR; validation will occur when the updated GitHub Actions workflow executes.

Codex Task

@Jordonbc Jordonbc merged commit 580bfc3 into Dev Mar 19, 2026
5 checks passed
@github-actions
Copy link

Review Summary

PR: Disable use of GITHUB_TOKEN in opencode GitHub Action
Files Changed: .github/workflows/opencode.yml (+2/-1)

Assessment

Code Quality: ✓ The YAML is valid and well-formatted.

Security: ✓ The change correctly:

  • Removes explicit GITHUB_TOKEN env var
  • Sets use_github_token: false for both primary and fallback steps
  • Enforces use of external API keys (OPENAI_API_KEY, OPENCODE_API_KEY) instead

No Issues Found:

  • The change is minimal and focused on the stated security goal
  • Both steps now consistently disable GITHUB_TOKEN usage
  • The continue-on-error: true on primary with fallback on failure is correctly preserved

Minor Note: Since this workflow has contents: write and pull-requests: write permissions, with use_github_token: false, the action will rely entirely on external API keys for any GitHub API operations. Ensure this aligns with expected behavior (e.g., if the action needs to create commits/PRs, the external keys must have appropriate permissions).

Verdict: Safe to merge. No bugs or quality concerns.

New%20session%20-%202026-03-19T06%3A17%3A12.517Z
opencode session  |  github run

@Jordonbc Jordonbc deleted the codex/fix-opencode-workflow-error-7dockj branch March 19, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant