From eac0dfdf20dee7bc64a93ccc0925afb1cd94a6a7 Mon Sep 17 00:00:00 2001 From: activadee Date: Sun, 4 Jan 2026 01:12:11 +0100 Subject: [PATCH] Done. Removed base64 encoding/decoding from all OpenCode OAuth actions: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Actions fixed (removed | base64 -d):** - actions/pr-review/action.yml - actions/doc-sync/action.yml - actions/issue-label/action.yml **Docs updated (removed base64 pipe):** - README.md - examples/README.md Now secrets are set directly: gh secret set OPENCODE_AUTH < ~/.local/share/opencode/auth.json All checks pass: typecheck ✓, 10 tests ✓, build ✓ Attempt: att-6dee9160-f4a1-474b-abc2-e5c6ef988681 Profile: apg-70541e2b-d01c-4d50-a814-7025ac222ebe --- README.md | 2 +- actions/doc-sync/action.yml | 2 +- actions/issue-label/action.yml | 2 +- actions/pr-review/action.yml | 2 +- examples/README.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3061541..4f11c1c 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ gh secret set ANTHROPIC_API_KEY **Option 2: Claude Max (OAuth)** ```bash -cat ~/.local/share/opencode/auth.json | base64 | gh secret set OPENCODE_AUTH +gh secret set OPENCODE_AUTH < ~/.local/share/opencode/auth.json ``` ## CLI Options diff --git a/actions/doc-sync/action.yml b/actions/doc-sync/action.yml index 486b796..c882dd8 100644 --- a/actions/doc-sync/action.yml +++ b/actions/doc-sync/action.yml @@ -19,7 +19,7 @@ runs: shell: bash run: | mkdir -p ~/.local/share/opencode - echo "$OPENCODE_AUTH" | base64 -d > ~/.local/share/opencode/auth.json + echo "$OPENCODE_AUTH" > ~/.local/share/opencode/auth.json - name: Configure Git shell: bash diff --git a/actions/issue-label/action.yml b/actions/issue-label/action.yml index d444289..ebc5616 100644 --- a/actions/issue-label/action.yml +++ b/actions/issue-label/action.yml @@ -19,7 +19,7 @@ runs: shell: bash run: | mkdir -p ~/.local/share/opencode - echo "$OPENCODE_AUTH" | base64 -d > ~/.local/share/opencode/auth.json + echo "$OPENCODE_AUTH" > ~/.local/share/opencode/auth.json - name: Install skill shell: bash diff --git a/actions/pr-review/action.yml b/actions/pr-review/action.yml index 4a6a38b..f9732cb 100644 --- a/actions/pr-review/action.yml +++ b/actions/pr-review/action.yml @@ -19,7 +19,7 @@ runs: shell: bash run: | mkdir -p ~/.local/share/opencode - echo "$OPENCODE_AUTH" | base64 -d > ~/.local/share/opencode/auth.json + echo "$OPENCODE_AUTH" > ~/.local/share/opencode/auth.json - name: Install skill shell: bash diff --git a/examples/README.md b/examples/README.md index 4aa2e4c..46fe20a 100644 --- a/examples/README.md +++ b/examples/README.md @@ -13,7 +13,7 @@ gh secret set ANTHROPIC_API_KEY Or if using Claude Max subscription: ```bash -cat ~/.local/share/opencode/auth.json | base64 | gh secret set OPENCODE_AUTH +gh secret set OPENCODE_AUTH < ~/.local/share/opencode/auth.json ``` ## PR Review