Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/codeql/codeql-actions-config.yml

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
id: init
with:
languages: javascript
config-file: ./.github/codeql/codeql-config.yml
config-file: ./.github/codeql/codeql-config-javascript.yml
tools: ${{ matrix.tools }}
# confirm steps.init.outputs.codeql-path points to the codeql binary
- name: Print CodeQL Version
Expand All @@ -108,11 +108,16 @@ jobs:
with:
category: "/language:javascript"


analyze-actions:
analyze-other:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
fail-fast: false
Copy link

Copilot AI Sep 15, 2025

Choose a reason for hiding this comment

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

[nitpick] The fail-fast: false should be placed before the matrix definition for better readability and to follow GitHub Actions convention of placing strategy-level options before matrix definitions.

Suggested change
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
fail-fast: false
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none

Copilot uses AI. Check for mistakes.

permissions:
Expand All @@ -125,9 +130,12 @@ jobs:
- name: Initialize CodeQL
uses: ./init
with:
languages: actions
config-file: ./.github/codeql/codeql-actions-config.yml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IMHO we should keep this and make it part of the matrix. Then we can have a Python config that filters out the test file. We could do the same with config in the matrix as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think since we don't yet have anything that needs to be language specific, it might be more readable to have a single config embedded into the workflow file. I've pushed a commit to add that.

languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: >
queries:
- uses: security-and-quality
- name: Perform CodeQL Analysis
uses: ./analyze
with:
category: "/language:actions"
category: "/language:${{ matrix.language }}"
Loading