ci: enable CodeQL static analysis#15
Merged
Merged
Conversation
Adds GitHub's CodeQL semantic analysis on push to main, every PR, and weekly as a safety net for upstream query updates. Findings appear in the repo's Security tab. Free for public repos, no Action minutes budget impact. Configured with the security-and-quality query suite (broader than security-extended) so we catch both vulnerability and maintainability findings — useful surface for a CLI that handles user-supplied file paths, API keys, and HTTP URLs. Also: - Adds a CodeQL badge to the README badges row. - Documents the existing proactive measures (CodeQL, Dependabot, Trusted Publishing, branch protection) in SECURITY.md. - Fixes a stale reference in SECURITY.md from the deleted release.yml to the consolidated release-please.yml.
|
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:
For more information about GitHub Code Scanning, check out the documentation. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15 +/- ##
=======================================
Coverage 82.02% 82.02%
=======================================
Files 14 14
Lines 1157 1157
Branches 112 112
=======================================
Hits 949 949
Misses 176 176
Partials 32 32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Enables GitHub CodeQL semantic static analysis on every push to `main`, every PR, and weekly as a backstop for upstream query updates. Findings will appear under Security → Code scanning.
Why this is worth it for hevy-cli specifically
Beyond generic OSS hygiene, this CLI has a few real surfaces that benefit from semantic analysis:
CodeQL's `security-and-quality` query suite covers all of these and more.
Configuration choices
Bonus cleanup in this PR
Test plan
Not in this PR (deferred)
Version bump
This is `ci:` — release-please will not bump the version. Pure infrastructure change, nothing to ship to PyPI.