Add explicit CodeQL workflow to prevent duplicate runs#15
Merged
sphildreth merged 3 commits intomainfrom Dec 20, 2025
Merged
Conversation
Co-authored-by: sphildreth <193334+sphildreth@users.noreply.github.com>
Co-authored-by: sphildreth <193334+sphildreth@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix duplicate CodeQL actions on main branch
Add explicit CodeQL workflow to prevent duplicate runs
Dec 20, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an explicit CodeQL workflow configuration to prevent duplicate scan executions on pushes to the main branch. By creating a repository-controlled workflow file, it replaces GitHub's default dynamic workflow which was causing redundant runs.
Key Changes:
- Explicit trigger configuration (push to main, PRs to main, weekly Sunday schedule)
- Support for C# and JavaScript/TypeScript language scanning
- 120-minute timeout with proper permissions for security events
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
|
||
| # If the Autobuild fails above, remove it and uncomment the following three lines. | ||
| # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
There was a problem hiding this comment.
Grammatical error: "modify them (or add more) to build your code if your project, please refer to" should be "modify them (or add more) to build your code. If your project needs custom build steps, please refer to"
Suggested change
| # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | |
| # modify them (or add more) to build your code. If your project needs custom build steps, please refer to the EXAMPLE below for guidance. |
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.
CodeQL was running twice on each push to main because GitHub's default "dynamic" workflow had redundant triggers configured.
Changes
.github/workflows/codeql.ymlwith explicit trigger configurationThis gives explicit control over when CodeQL runs and eliminates duplicate executions.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.