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 — Remove support for combining SARIF runs with non-unique categories by koesie10 · Pull Request #2959 · github/codeql-action

Conversation

@koesie10

@koesie10 koesie10 commented Jul 1, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

This removes support for combining SARIF runs with non-unique categories, and will instead throw a configuration error. This behavior is only enabled behind a feature flag.

This is intentionally not backwards compatible when the feature flag is enabled, as this was announced over a year ago and a deprecation warning is shown for every upload that would run into this error.

Screenshot 2025-07-02 at 11 33 41

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

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

All reactions
@koesie10
Remove support for combining SARIF runs with non-unique categories
612df8d
@koesie10
koesie10 marked this pull request as ready for review July 2, 2025 09:34
Copilot AI review requested due to automatic review settings July 2, 2025 09:34
@koesie10
koesie10 requested a review from a team as a code owner July 2, 2025 09:34
Copilot AI reviewed Jul 2, 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 introduces a feature-flagged error when attempting to combine multiple SARIF runs that share the same category, and updates related merge logic and tests.

  • Add throwIfCombineSarifFilesDisabled & shouldDisableCombineSarifFiles to enforce non-unique-category checks behind the DisableCombineSarifFiles flag.
  • Extend combineSarifFilesUsingCLI to call the new check and update deprecation messaging.
  • Register and configure DisableCombineSarifFiles in the feature flags and expand test coverage accordingly.

Reviewed Changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.

File Description
src/upload-lib.ts Added new helper functions for feature-flagged enforcement and integrated them into merge flow
src/upload-lib.test.ts Added comprehensive AVA tests for the new enforcement logic across GitHub variants
src/feature-flags.ts Defined the DisableCombineSarifFiles feature flag and its environment default
lib/* Generated JavaScript reflecting the above TypeScript changes (mirrors TS sources)
Comments suppressed due to low confidence (1)

src/upload-lib.ts:182

  • You're using semver.lt here but there's no import for semver. Please add import * as semver from "semver"; at the top of the file.
  ) {

Sorry, something went wrong.

Uh oh!

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

All reactions
mbg
mbg approved these changes Jul 2, 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.

Thanks for taking care of this and including a bunch of tests! This generally looks good to me.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/upload-lib.ts Resolved

Uh oh!

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

Comment thread src/upload-lib.ts
Comment on lines +221 to +225
await throwIfCombineSarifFilesDisabled(
sarifObjects,
features,
gitHubVersion,
);

@mbg mbg Jul 2, 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.

I assume the deprecation warning a few lines further down is not necessary if the conditions for this are true. Should it be removed now or later?

Sorry, something went wrong.

Uh oh!

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

All reactions

@koesie10 koesie10 Jul 2, 2025

Copy link
Copy Markdown
Member 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.

That's true, but we can only remove the deprecation warning when the action drops support for GHES 3.17. In all GHES versions between 3.14 (including) and 3.18 (excluding), the action should still show the deprecation warning and should never give this error. Until support for GHES 3.17 is dropped, customers can still sync their action from dotcom to their GHES instance and expect it to work without breaking changes.

Sorry, something went wrong.

Uh oh!

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

mbg reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@mbg mbg Jul 2, 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.

Makes sense -- probably also worth tracking then

Sorry, something went wrong.

Uh oh!

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

koesie10 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@koesie10
koesie10 merged commit 33f8489 into main Jul 2, 2025
@koesie10
koesie10 deleted the koesie10/remove-combine-runs branch July 2, 2025 12:34
@koesie10 koesie10 mentioned this pull request Jul 4, 2025
Unconditionally disable combining SARIF files for GHES 3.18 #2961
Merged
3 tasks
@koesie10 koesie10 mentioned this pull request Jul 21, 2025
[DO NOT MERGE] v3.28.20 #2976
Closed
@github-actions github-actions Bot mentioned this pull request Jul 21, 2025
Merge main into releases/v3 #2977
Merged
6 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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

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.

3 participants

@koesie10 @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.