Add CodeQL analysis workflow configuration - #116
Open
Jared Holgate (jaredfholgate) wants to merge 1 commit into
Open
Add CodeQL analysis workflow configuration#116Jared Holgate (jaredfholgate) wants to merge 1 commit into
Jared Holgate (jaredfholgate) wants to merge 1 commit into
Conversation
|
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. |
Copilot started reviewing on behalf of
Jared Holgate (jaredfholgate)
August 4, 2026 14:43
View session
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow intended to run CodeQL “Advanced” scanning for this repository.
Changes:
- Introduces a new
.github/workflows/codeql.ymlworkflow for CodeQL analysis. - Configures a language matrix (actions + go) with per-language build modes.
- Triggers analysis on pushes/PRs to
mainand on a weekly schedule.
Suppressed comments (2)
.github/workflows/codeql.yml:90
- The manual build step block is mis-indented under
steps:(and therun: |block contents need to be indented relative torun). As written, this YAML will not parse correctly.
- name: Run manual build steps
if: matrix.build-mode == 'manual'
shell: bash
run: |
.github/workflows/codeql.yml:101
- The CodeQL analyze step is mis-indented under
steps:. It also should be pinned to a SHA for consistency with the rest of the repo’s workflows.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+14
to
+20
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '19 13 * * 4' |
Comment on lines
+45
to
+49
| include: | ||
| - language: actions | ||
| build-mode: none | ||
| - language: go | ||
| build-mode: autobuild |
Comment on lines
+58
to
+74
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7 | ||
|
|
||
| # Add any setup steps before running the `github/codeql-action/init` action. | ||
| # This includes steps like installing compilers or runtimes (`actions/setup-node` | ||
| # or others). This is typically only required for manual builds. | ||
| # - name: Setup runtime (example) | ||
| # uses: actions/setup-example@v1 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # If you wish to specify custom queries, you can do so here or in a config file. |
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.
No description provided.