Skip to content

Add CodeQL analysis workflow configuration - #116

Open
Jared Holgate (jaredfholgate) wants to merge 1 commit into
mainfrom
jaredfholgate-patch-1
Open

Add CodeQL analysis workflow configuration#116
Jared Holgate (jaredfholgate) wants to merge 1 commit into
mainfrom
jaredfholgate-patch-1

Conversation

@jaredfholgate

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 4, 2026 14:42
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml workflow for CodeQL analysis.
  • Configures a language matrix (actions + go) with per-language build modes.
  • Triggers analysis on pushes/PRs to main and on a weekly schedule.
Suppressed comments (2)

.github/workflows/codeql.yml:90

  • The manual build step block is mis-indented under steps: (and the run: | block contents need to be indented relative to run). 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants