Skip to content

Allow CodeQL to run on demand - #24

Merged
ichnograph merged 3 commits into
masterfrom
fix/codeql-dispatch
Aug 24, 2026
Merged

Allow CodeQL to run on demand#24
ichnograph merged 3 commits into
masterfrom
fix/codeql-dispatch

Conversation

@ichnograph

Copy link
Copy Markdown
Contributor

The CodeQL workflow only had push, pull_request and schedule triggers. There was no way to confirm a scanning config change was green without pushing a commit to provoke a run.

That gap is what let #23 merge on a stale red check. The red Analyze (go) job was the old default setup running autobuild, racing the API call that disabled it; our own Analyze (go, manual) passed on the same commit. With workflow_dispatch the correct move would have been to re-run scanning on demand and confirm green before merging.

The workflow only had push, pull_request and schedule triggers, so there
was no way to confirm a scanning config change was green without pushing
a commit to provoke one. That gap is why the switch away from default
setup was merged on a stale red check instead of a fresh green one.
@ichnograph ichnograph closed this Aug 24, 2026
@ichnograph ichnograph reopened this Aug 24, 2026
PR #23 merged while a CodeQL check was red. The red job was the old
default setup running autobuild, racing the API call that disabled it,
and our own manual-build job passed on the same commit. The conclusion
was right but the practice was wrong, and nothing stopped the merge:
master had no protection at all.

Master now requires lint, test and both CodeQL analyze jobs, must be up
to date before merge, and rejects force-pushes and deletion.
Administrators can still override for emergencies.

Two rules protection cannot enforce go in CONTRIBUTING: never merge on a
red check even when it looks stale, and confirm a fresh green run after
changing CI or scanning config, because those changes take minutes to
take effect on the GitHub side.

CI gains a workflow_dispatch trigger so it can be verified on demand, as
Security, Integration and now CodeQL already could. Release stays tag
driven.
Settings has two independent default setups, Code security and Code
quality, and each spawns its own CodeQL run with its own pinned Go
toolchain. Both failed on Go 1.27 with the same autobuild error, which
made it look like one disable had not taken effect.

Record which runs come from where so the next person does not spend the
same time on it.
@ichnograph
ichnograph merged commit e370aa5 into master Aug 24, 2026
6 checks passed
@ichnograph
ichnograph deleted the fix/codeql-dispatch branch August 24, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant