fix(github): add persist-credentials: false to workflow templates (#8202)

This commit is contained in:
Leonidas
2026-01-13 16:53:30 +01:00
committed by GitHub
parent 883a6577d5
commit a092f567b7
3 changed files with 20 additions and 10 deletions

View File

@@ -81,12 +81,13 @@ This will walk you through installing the GitHub app, creating the workflow, and
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 }}