ci: enable CodeQL security analysis#29
Open
don-petry wants to merge 3 commits intooneirosoft:mainfrom
Open
Conversation
Add CodeQL workflow to scan GitHub Actions workflows for security issues. Runs on push/PR to main and weekly on Mondays. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds GitHub CodeQL code scanning to improve security analysis coverage for the repository’s GitHub Actions workflows (per issue #11 item 8).
Changes:
- Introduces a new CodeQL workflow that runs on push/PR to
mainand on a weekly cron schedule. - Configures CodeQL to analyze
actions(GitHub Actions workflow files) and upload results to the Security tab.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/codeql.yml
Outdated
Comment on lines
+5
to
+7
| branches: [main] | ||
| pull_request: | ||
| branches: [main] |
There was a problem hiding this comment.
To match the YAML style used in the existing workflows (e.g., .github/workflows/ci.yml:9-11), consider using the multi-line list form for branches instead of the inline array syntax. This keeps workflow triggers consistent and easier to edit in diffs.
Suggested change
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main |
Contributor
Author
There was a problem hiding this comment.
Addressed in the latest push.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Why?
GitHub Actions workflows can contain security vulnerabilities (script injection, overly permissive tokens, unsafe third-party actions). CodeQL's
actionslanguage analysis catches these automatically, reducing the risk of supply-chain attacks through CI configuration.Summary
.github/workflows/codeql.yml) to scan GitHub Actions workflows for security issueslanguages: actionsto analyze workflow files; Rust support can be added as CodeQL's Rust analysis maturesAddresses item 8 in #11.
Test plan
🤖 Generated with Claude Code