Skip to content

Bump nitropack from 2.13.3 to 2.13.4 in the security group across 1 directory #10

Bump nitropack from 2.13.3 to 2.13.4 in the security group across 1 directory

Bump nitropack from 2.13.3 to 2.13.4 in the security group across 1 directory #10

Workflow file for this run

name: opencode
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
jobs:
opencode:
runs-on: ubuntu-latest
env:
XDG_DATA_HOME: /tmp/xdg-data
if: |
github.event.comment.user.login == 'mellowagain' && (
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, ' /opencode') ||
startsWith(github.event.comment.body, '/opencode')
)
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Build OpenCode auth.json for Copilot
env:
COPILOT_ACCESS_TOKEN: ${{ secrets.COPILOT_ACCESS_TOKEN }}
COPILOT_REFRESH_TOKEN: ${{ secrets.COPILOT_REFRESH_TOKEN }}
run: |
mkdir -p "$XDG_DATA_HOME/opencode"
jq -n \
--arg access "$COPILOT_ACCESS_TOKEN" \
--arg refresh "$COPILOT_REFRESH_TOKEN" \
'{
"github-copilot": {
"type": "oauth",
"access": $access,
"refresh": $refresh,
"expires": 0
}
}' > "$XDG_DATA_HOME/opencode/auth.json"
chmod 600 "$XDG_DATA_HOME/opencode/auth.json"
- name: Set git identity
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Run opencode
uses: anomalyco/opencode/github@77fc88c8ade8e5a620ebbe1197f3a572d29ae91a # v1.4.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
model: github-copilot/claude-sonnet-4.6
use_github_token: true