GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: Configure Python analysis by henrymercer · Pull Request #3112 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

While we're here, simplify the config a bit and add build modes.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
CI: Configure Python analysis
793fe17
@henrymercer
henrymercer requested a review from a team as a code owner September 15, 2025 13:11
Copilot AI review requested due to automatic review settings September 15, 2025 13:11
Copilot AI reviewed Sep 15, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull Request Overview

This PR configures Python analysis for CodeQL and simplifies the CI configuration by consolidating multiple analysis jobs into a single matrix-based job.

  • Adds Python language analysis alongside existing Actions analysis
  • Consolidates separate analyze-actions job into a matrix-based analyze-other job
  • Replaces external config files with inline configuration

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/codeql.yml Updates JavaScript config file reference, consolidates Actions and Python analysis into matrix job with inline config
.github/codeql/codeql-actions-config.yml File removed as part of config consolidation

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/codeql.yml Outdated
Comment on lines 115 to 121
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
fail-fast: false

Copilot AI Sep 15, 2025

Copy link

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
@github-advanced-security

github-advanced-security AI commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

henrymercer added 2 commits September 15, 2025 14:12
@henrymercer
Reorder strategy properties
73ead84
@henrymercer
Only upload a single matrix case for JS
61b8b63
mbg
mbg previously approved these changes Sep 15, 2025
View reviewed changes

@mbg mbg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM with one suggestion for filtering out the Python test file

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/codeql.yml
uses: ./init
with:
languages: actions
config-file: ./.github/codeql/codeql-actions-config.yml

@mbg mbg Sep 15, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@henrymercer henrymercer Sep 15, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@henrymercer
Specify paths-ignore for other languages
8105843
@henrymercer
henrymercer dismissed mbg’s stale review via 8105843 September 15, 2025 13:20
@henrymercer
Remove build mode from matrix
bce0fa7
mbg
mbg previously approved these changes Sep 15, 2025
View reviewed changes

@mbg mbg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

One comment + suggestion about the readability of the condition for the JS analysis results upload.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/codeql.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@henrymercer
Update .github/workflows/codeql.yml
1069ace
@henrymercer
henrymercer dismissed mbg’s stale review via 1069ace September 15, 2025 15:09
mbg
mbg approved these changes Sep 15, 2025
View reviewed changes
@henrymercer
henrymercer enabled auto-merge September 15, 2025 15:19
@henrymercer
henrymercer merged commit 77c3d25 into main Sep 15, 2025
@henrymercer
henrymercer deleted the henrymercer/scan-python branch September 15, 2025 15:25
@github-actions github-actions Bot mentioned this pull request Sep 25, 2025
Merge main into releases/v3 #3149
Merged
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@mbg mbg mbg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@henrymercer @github-advanced-security @mbg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.