Repository navigation
Guard and record the condition behind the CodeQL Actions failure - #8
Merged
Merged
Conversation
CodeQL default setup failed on main from 2026-09-12 to 2026-09-30 because its GitHub Actions analysis had no input: the only Actions file was a workflow template, which that analysis does not read. Adding the toolkit workflow repaired it as a side effect. Check the condition in the validator and record it with the GitHub integration. Refs #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work object
Closes #4.
Authority basis
The repository owner's direct task request of 2026-11-27 to fix Issue #4 and open a pull request onto
main, carried out under this repository's standing ordinary-workflow grant (.agent/contracts/authorization.md). The request covers a branch and a pull request; merging is left to the owner. No merge, settings or release authority is exercised.Executor
Claude Code (Fable 5.2), in a direct owner session.
Outcome
Cause. CodeQL default setup was analysing GitHub Actions. That analysis reads workflows in
.github/workflows/and.github/reusable_workflows/and action files such asaction.yml. From the 2026-09-12 revision ofmain(5239dbe) through53e89cc, the only Actions file in the repository wasworkflow-templates/repository-hygiene.yml, which is outside those paths. Extraction therefore found nothing, andcodeql database finalizeexits 32 with "CodeQL detected code written in GitHub Actions but could not process any of it" instead of reporting an empty result. The failing job shows the extraction step listing no file.Current state. The failure no longer occurs. #5 added
.github/workflows/agent-toolkit.ymlon 2026-10-07, which gave the analysis a file to read.Analyze (actions)has passed on every run since 2026-10-09, most recently onmainat257385cin this run, where it extracted that one workflow and uploaded no alerts. The repair was a side effect: nothing in the repository recorded why the analysis passes or what would break it again.Change.
scripts/validate_agent_toolkit.pyrequires at least one*.ymlor*.yamlworkflow directly under.github/workflows/.tests/test_agent_toolkit.pygains two cases. The layout that failed (a workflow template and no workflow, with the directory empty and with it absent) is rejected. A workflow with the.yamlsuffix is accepted..agent/integrations/README.mdrecords that code scanning is default setup with no tracked file, which paths its Actions analysis reads, thatworkflow-templates/is not analysed, and why the validator has the check.No CodeQL setting, language, query suite or workflow is changed. GitHub Actions analysis stays enabled.
Verification
Checks run and results (local, at
fae0e1a, Python 3.13 with PyYAML vianix-shell -p python3Packages.pyyaml):python3 scripts/validate_agent_toolkit.py: passed.python3 -m unittest discover -s tests -v: 15 tests passed, two of them new. The new rejecting test failed (Invalid not raised) before the validator change, so it exercises the check.git diff --check: clean.no workflow under .github/workflows/ for code scanning to analyze.5239dbe,047433e,d77fc31,53e89cc,b33b0a6,4ea2424,257385c): it rejects the four trees where the analysis failed and accepts the three where it succeeded.Hosted checks observed at head
fae0e1a:Agent toolkit: passed. The validator passed and 15 tests ran, including both new cases.Analyze (actions)andAnalyze (python)passed, with no alerts on this pull request.Checks not run and why:
mainafter merge. It runs on the merge push; this pull request is not merged.Documentation impact
.agent/integrations/README.mdgains one paragraph on code scanning. It is descriptive: no contract, authority or workflow rule changes.Security and privacy
No protection is weakened or removed. No setting, language, query suite, permission or dependency changes; the code-scanning, secret-scanning and Dependabot settings were read before the change and left untouched.
The new paragraph states a coverage limit that already existed:
workflow-templates/gets no CodeQL analysis here, so template edits rely on the manual inspection the public metadata workflow already requires. No credentials or private details are added.Compatibility and rollout
The validator now fails for a tree with no workflow under
.github/workflows/. If GitHub Actions analysis is later switched off on purpose, remove the check in that same reviewed change. To roll back, revert this commit.Deployment effect
None. Merging runs the read-only
Agent toolkitworkflow and CodeQL default setup onmain. It deploys, publishes or releases nothing and changes no organization default community file.Explicit non-actions
workflow-templates/was not brought under CodeQL analysis. Either would be a separate change.Checklist