fix(ci): convert CodeQL workflow to no-op stub on Gitea (#156) #51
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/codeql-stub-on-gitea-156"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.github/workflows/codeql.ymlto a no-op stub that emitssuccessper matrix language (go, javascript-typescript, python).CodeQL), job name template (Analyze (${{ matrix.language }})), and the 3-leg matrix are preserved exactly so commit-status context names + auto-promote-staging.yml workflow_run gate + branch-protection / #144 required-check parity all stay stable.Why a stub instead of
continue-on-error?Two independent problems compounded:
Gitea Actions 1.22.6 does NOT propagate
continue-on-error: trueto the commit-status API. PR #35 placed it at the correct (job) level, but every matrix leg still postsfailure— visible right now on0276b295(currentmainHEAD): the three CodeQL contexts showfailuredespite #35.The codeql-action is structurally incompatible with Gitea. The
Initialize CodeQLstep calls api.github.com bundle endpoints (CodeQL CLI download + query-pack registry + telemetry) that Gitea does not proxy.act_runneralready hasGITHUB_SERVER_URL=https://git.moleculesai.appset correctly (per saved memoryfeedback_act_runner_github_server_url), but the Gitea API surface simply does not implement these endpoints.Live-tested log from run
1d/3101on operator host:So the SARIF artifact upload was already a no-op every run —
analyzewas being skipped becauseinitfailed. Nothing of value is being lost by stubbing this out.Policy decision
Per Hongming 2026-05-07 (#156): CodeQL is ADVISORY, non-blocking until a Gitea-compatible SAST pipeline lands. The new workflow header documents:
Test plan
python3 -c 'import yaml; yaml.safe_load(...)')name, jobnametemplate, matrix values, and all 4 triggers byte-equal to pre-stubMolecule-AIrefs in this file (#142 — already lowercase pere01077be)mainproduces commit-statussuccessfor all 3 CodeQL contexts (verified via Gitea statuses API)conclusion=successsoauto-promote-staging.ymlworkflow_run gate passesCloses #156. Touches #142.
🤖 Generated with Claude Code
Approved — investigated structural Gitea/CodeQL incompatibility, stub keeps gating workflow live + commit-status green; security policy delta (advisory) is documented in the workflow header.