ci: make dependency audit blocking, log opencode errors
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Failing after 8s
PR Check / AI code review (opencode) (pull_request) Failing after 13s
PR Check / Dockerfile lint (droast) (pull_request) Skipped
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / ESLint (pull_request) Successful in 34s
PR Check / Typecheck (pull_request) Successful in 37s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 5s
PR Check / Dependency audit (pull_request) Failing after 8s
PR Check / AI code review (opencode) (pull_request) Failing after 13s
- audit no longer runs with continue-on-error: a failed audit must turn the pipeline red, not pass silently - opencode review runs with --print-logs so auth and provider errors (e.g. invalid API key vs missing Go subscription) appear in the job log instead of an opaque exit 1
This commit is contained in:
1 parent
8f36f14720
commit
a6761fae9a
1 file changed
+5
-1
@@ -109,7 +109,8 @@ jobs:
|
||||
- name: Audit dependencies for known vulnerabilities
|
||||
working-directory: ${{ env.APP_DIR }}
|
||||
run: pnpm audit --prod --audit-level moderate
|
||||
continue-on-error: true # advisory: does not block the PR by default
|
||||
# blocks the PR on vulnerabilities - flip to true only if a CVE fix
|
||||
# is genuinely blocked, never to make red pipelines "go away"
|
||||
|
||||
# ------------------------------------------------------- dockerfile lint --
|
||||
dockerfile-lint:
|
||||
@@ -212,7 +213,10 @@ jobs:
|
||||
# Output is redirected (not piped through tee): if opencode fails,
|
||||
# the job must fail here so the error log is never posted as a
|
||||
# "review" comment.
|
||||
# --print-logs: surface auth/provider errors in the CI log instead
|
||||
# of failing with an opaque exit code
|
||||
opencode run \
|
||||
--print-logs \
|
||||
--model opencode-go/deepseek-v4-pro#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
|
||||
|
||||
Reference in new issue
Block a user