fix(ci): switch review model to deepseek-v4.1-flash, pause snyk via workflow_dispatch
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 36s
PR Check / Typecheck (pull_request) Successful in 44s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 5m12s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 36s
PR Check / Typecheck (pull_request) Successful in 44s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
PR Check / AI code review (opencode) (pull_request) Successful in 5m12s
This commit is contained in:
1 parent
db11806c03
commit
9b0f89ef38
3 files changed
+24
-10
No files matched your search
@@ -3,6 +3,8 @@ name: PR Check
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
# manual trigger: the only way the paused snyk job below can run
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: pr-check-${{ github.event.pull_request.number }}
|
||||
@@ -174,15 +176,17 @@ jobs:
|
||||
-print0 | xargs -0 -r droast --no-roast --min-severity warning
|
||||
|
||||
# ------------------------------------------------------- snyk security ----
|
||||
# DISABLED: Snyk free plan only includes ~100 test credits/month, which the
|
||||
# PAUSED: Snyk free plan only includes ~100 test credits/month, which the
|
||||
# pipeline would burn through quickly (2 tests per PR push).
|
||||
# To re-enable, delete the "if: false" line below. Consider also running
|
||||
# Paused the actionlint-clean way: the job only runs on manual
|
||||
# (workflow_dispatch) triggers, so pushes and PRs never burn credits.
|
||||
# To re-enable fully, delete the if: line below. Consider also running
|
||||
# this job only on PRs marked "ready for review" or on a weekly schedule
|
||||
# instead of on every push.
|
||||
snyk:
|
||||
name: Security scan (Snyk)
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
# snyk/snyk:node is amd64-only ("no matching manifest for linux/arm64"),
|
||||
# so install the CLI via npm in the multi-arch node image instead
|
||||
container: node:22-bookworm
|
||||
@@ -251,11 +255,15 @@ jobs:
|
||||
env:
|
||||
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
|
||||
run: |
|
||||
# opencode-go/deepseek-v4-pro#max: flagship reasoning model at
|
||||
# maximum thinking budget - included in the opencode-go $10 plan
|
||||
# (variants: high, max). NOTE the provider prefix must be
|
||||
# "opencode-go", NOT "opencode" (Zen is a different, pay-per-call
|
||||
# provider and fails with 'Insufficient account funds').
|
||||
# opencode-go/deepseek-v4.1-flash#max: switched from
|
||||
# deepseek-v4-pro#max on 2026-10-20 after two consecutive runs
|
||||
# failed with "Upstream request failed: Endpoint is unavailable"
|
||||
# (~10 min apart; the model is still listed active, the endpoint
|
||||
# just does not serve). This is the default recorded in
|
||||
# OKF_Nuxt/open-questions.md for exactly this case. NOTE the
|
||||
# provider prefix must be "opencode-go", NOT "opencode" (Zen is a
|
||||
# different, pay-per-call provider and fails with 'Insufficient
|
||||
# account funds').
|
||||
#
|
||||
# Auth is env-only: the CLI picks up OPENCODE_API_KEY from the
|
||||
# environment (verified headless). Deliberately NO opencode.json:
|
||||
@@ -289,7 +297,7 @@ jobs:
|
||||
EXIT_CODE=0
|
||||
opencode run \
|
||||
--print-logs \
|
||||
--model opencode-go/deepseek-v4-pro#max \
|
||||
--model opencode-go/deepseek-v4.1-flash#max \
|
||||
"You are a principal engineer performing a rigorous code review on a
|
||||
pull request. You have tool access: read repo files for context when
|
||||
the diff alone is ambiguous, but review ONLY code changed in this PR.
|
||||
|
||||
Reference in new issue
Block a user