summaryrefslogtreecommitdiffhomepage
path: root/github/action.yml
diff options
context:
space:
mode:
authorMatt Silverlock <[email protected]>2025-12-12 20:55:46 -0500
committerGitHub <[email protected]>2025-12-12 19:55:46 -0600
commit613e082358d2f8cd589ace285248017ba73e9e94 (patch)
tree8d415ae3479516995f41351fc1a988ffcbdc64f4 /github/action.yml
parentb6856bd593402fef816a4ed9f6abfd411f5f463d (diff)
downloadopencode-613e082358d2f8cd589ace285248017ba73e9e94.tar.gz
opencode-613e082358d2f8cd589ace285248017ba73e9e94.zip
github: support GITHUB_TOKEN + skip OIDC (#5459)
Diffstat (limited to 'github/action.yml')
-rw-r--r--github/action.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/github/action.yml b/github/action.yml
index f52f14d80..fe6a32206 100644
--- a/github/action.yml
+++ b/github/action.yml
@@ -17,6 +17,11 @@ inputs:
description: "Custom prompt to override the default prompt"
required: false
+ use_github_token:
+ description: "Use GITHUB_TOKEN directly instead of OpenCode App token exchange. When true, skips OIDC and uses the GITHUB_TOKEN env var."
+ required: false
+ default: "false"
+
runs:
using: "composite"
steps:
@@ -51,3 +56,4 @@ runs:
MODEL: ${{ inputs.model }}
SHARE: ${{ inputs.share }}
PROMPT: ${{ inputs.prompt }}
+ USE_GITHUB_TOKEN: ${{ inputs.use_github_token }}