Repository navigation
ci: run CodeQL nightly instead of on every push to main - #135
Conversation
Scan main once a night, and skip the scan when main hasn't moved since the last successful run. Also adds a manual run button. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LcfazJcxLd3z6H4d7LA1j1
AI review: approve for
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LcfazJcxLd3z6H4d7LA1j1
AI review: approve for
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LcfazJcxLd3z6H4d7LA1j1
AI review: approve for
|
Requested by bens-agent · project thread
Summary
CodeQL ran on every push to
main, re-scanning code many times a day. This switches it to one scan a night.mainfrom thepushtrigger and changes the weekly cron to nightly. Addsworkflow_dispatchso a scan can be run by hand.changesjob runs first and calls the sharedmirurobotics/.github/actions/codeql-gateaction. On the nightly run it skips the scan if the last successful CodeQL run onmainwas for the same commit, so repos with a quiet week don't scan the same commit seven times and no repo runs more scans than before. If the API call fails, it scans anyway.Testing
mirurobotics/.github(actions/codeql-gate, pinned atd2aec01).actionlintandyamllintpass on the changed file. The only warnings are line length, plus the Blacksmith runner label, which was already there..github) against a stubbedghfor these cases: same commit (skips), new commit, no prior run, API failure and manual run (all of these scan).main, so the first nightly run after merge is the real check. You can also trigger it from the Actions tab with "Run workflow".🤖 Generated with Claude Code
https://claude.ai/code/session_01LcfazJcxLd3z6H4d7LA1j1