Skip to content

ci: extend code analysis (CodeQL actions + security-extended + actionlint)#1249

Merged
mbouaziz merged 3 commits into
mainfrom
codeql-more-analyses
May 27, 2026
Merged

ci: extend code analysis (CodeQL actions + security-extended + actionlint)#1249
mbouaziz merged 3 commits into
mainfrom
codeql-more-analyses

Conversation

@mbouaziz
Copy link
Copy Markdown
Contributor

Summary

Three small commits extending CI code analysis coverage:

  1. ci(codeql): add actions language — enables CodeQL scanning of GitHub Actions workflow files. Catches script-injection via untrusted inputs in run: blocks, missing permissions, and similar workflow-security issues.
  2. ci(codeql): use security-extended query suite — switches from the default query suite to security-extended, which adds lower-precision queries that still turn up real issues. Easy to scope per-language later if any one becomes too noisy.
  3. ci: add actionlint workflow — adds actionlint as a separate workflow that runs on changes under .github/workflows/. Catches what CodeQL doesn't: deprecated syntax, typos in event/job/step keys, shellcheck on run: blocks, glob/regex mistakes.

Test plan

  • CodeQL workflow runs successfully for all 5 languages (now includes actions)
  • actionlint workflow runs and lints cleanly (verified locally)
  • Any new alerts surfaced by security-extended get triaged separately

🤖 Generated with Claude Code

mbouaziz and others added 3 commits May 27, 2026 15:51
Enables CodeQL scanning of GitHub Actions workflow files. Catches
script-injection via untrusted inputs in run blocks, missing
permissions, and similar security issues in CI definitions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The default query suite focuses on high-precision findings. The
security-extended suite adds queries with lower precision that still
turn up real issues — broader coverage at the cost of more triage
work. Easy to revert per-language via a matrix field if any one
language becomes too noisy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
actionlint catches GitHub Actions issues that CodeQL doesn't:
deprecated syntax, typos in event/job/step keys, shellcheck on
run: blocks, glob/regex mistakes in paths filters, etc. Complements
the security-focused CodeQL actions extractor.

Triggers only on changes under .github/workflows/, so it's near-free
when the rest of the tree changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-advanced-security
Copy link
Copy Markdown
Contributor

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@mbouaziz mbouaziz merged commit 14d1cad into main May 27, 2026
9 checks passed
@mbouaziz mbouaziz deleted the codeql-more-analyses branch May 27, 2026 15:58
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.

2 participants