-
-
Notifications
You must be signed in to change notification settings - Fork 2
chore: review CodeQL analysis setup for cost and runtime optimisation #738
Copy link
Copy link
Open
Labels
Description
Context
The CodeQL Analysis workflow runs on every push to main and on PRs. It currently analyses JavaScript/TypeScript and Python.
Tasks
- Review if both language analyses are needed on every push (consider running Python only on backend changes, JS only on frontend changes)
- Check if the workflow duration is excessive and identify bottlenecks
- Consider using
pathsfilters to skip analysis when irrelevant files change - Evaluate if schedule-based scanning (e.g., weekly) could replace push-triggered scans for cost savings
- Check if the
autobuildstep is necessary or if a custom build step would be faster - Consider caching strategies for CodeQL databases
Why
GitHub Actions minutes cost money. Long-running CodeQL scans on every push add up, especially if they analyse code that hasn't changed.
Reactions are currently unavailable