Skip to content

ci: filter all CodeQL languages by changed files + fix Swift path#678

Merged
theoephraim merged 1 commit into
mainfrom
fix/codeql-improvements
Apr 30, 2026
Merged

ci: filter all CodeQL languages by changed files + fix Swift path#678
theoephraim merged 1 commit into
mainfrom
fix/codeql-improvements

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • Single check-changes job uses GitHub API (no checkout) to detect which languages have changes
  • Each analysis job (JS/TS, Actions, Swift, Rust) only runs when relevant files changed
  • On weekly schedule, all languages are scanned
  • Fix Swift build path (Package.swift is in swift/ subdirectory)
  • Splits JS/TS and Actions into separate jobs so they can be independently skipped

Test plan

  • Push with only .yaml workflow changes → only Actions CodeQL runs
  • Push with .ts changes → only JS/TS CodeQL runs
  • Weekly schedule → all four analyses run

- Single check job uses GitHub API to detect which languages changed
- Each analysis job only runs when relevant files changed
- On schedule, all languages are scanned
- Fix Swift build path (Package.swift is in swift/ subdirectory)
- No checkout needed for the check step
@theoephraim theoephraim merged commit f4048c5 into main Apr 30, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant