summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/github.mdx
diff options
context:
space:
mode:
authorLeonidas <[email protected]>2026-01-13 16:53:30 +0100
committerFrank <[email protected]>2026-01-13 19:50:49 -0500
commit5b699a0d9b2aa11dc598b4d341123c3c4cafe15b (patch)
treed8d9149d5f72fb39fef201d5ffea89e193d95329 /packages/web/src/content/docs/github.mdx
parentbc557e828d150b02e54776e47f36d2b684da2f9f (diff)
downloadopencode-5b699a0d9b2aa11dc598b4d341123c3c4cafe15b.tar.gz
opencode-5b699a0d9b2aa11dc598b4d341123c3c4cafe15b.zip
fix(github): add persist-credentials: false to workflow templates (#8202)
Diffstat (limited to 'packages/web/src/content/docs/github.mdx')
-rw-r--r--packages/web/src/content/docs/github.mdx17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/web/src/content/docs/github.mdx b/packages/web/src/content/docs/github.mdx
index 879914c74..6e8b9de4d 100644
--- a/packages/web/src/content/docs/github.mdx
+++ b/packages/web/src/content/docs/github.mdx
@@ -57,12 +57,13 @@ Or you can set it up manually.
permissions:
id-token: write
steps:
- - name: Checkout repository
- uses: actions/checkout@v6
- with:
- fetch-depth: 1
+ - name: Checkout repository
+ uses: actions/checkout@v6
+ with:
+ fetch-depth: 1
+ persist-credentials: false
- - name: Run OpenCode
+ - name: Run OpenCode
uses: anomalyco/opencode/github@latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -135,6 +136,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
+ with:
+ persist-credentials: false
- name: Run OpenCode
uses: anomalyco/opencode/github@latest
@@ -172,6 +175,8 @@ jobs:
issues: read
steps:
- uses: actions/checkout@v6
+ with:
+ persist-credentials: false
- uses: anomalyco/opencode/github@latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -223,6 +228,8 @@ jobs:
- uses: actions/checkout@v6
if: steps.check.outputs.result == 'true'
+ with:
+ persist-credentials: false
- uses: anomalyco/opencode/github@latest
if: steps.check.outputs.result == 'true'