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 — Prune results of Ruby query from SARIF by edoardopirovano · Pull Request #1344 · github/codeql-action

Conversation

@edoardopirovano

@edoardopirovano edoardopirovano commented Nov 4, 2022

Copy link
Copy Markdown
Contributor

This PR is a mitigation for the fact that the rb/weak-cryptographic-algorithm query was released in version 2.11.2 of CodeQL with a large number of false positives relating to hashing algorithms. This was tweaked in github/codeql#11119 for 2.11.3, but we'd like to filter the false positives out while we wait for that to be released.

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
@edoardopirovano
edoardopirovano requested a review from a team as a code owner November 4, 2022 14:29
@edoardopirovano
edoardopirovano force-pushed the edoardo/prune-ruby branch from 955dd50 to 9157344 Compare November 4, 2022 14:31
aeisenberg
aeisenberg reviewed Nov 4, 2022
View reviewed changes
Comment thread src/upload-lib.test.ts Resolved

Uh oh!

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

Comment thread src/upload-lib.test.ts Resolved

Uh oh!

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

Comment thread src/upload-lib.ts Outdated
run.tool?.driver?.semanticVersion === "2.11.2"
) {
// Version 2.11.2 of the CodeQL CLI had many false positives in the
// rb/weak-cryptographic-algorithm query which we prune here.

@aeisenberg aeisenberg Nov 4, 2022

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.

Do we have a public facing issue for this? Maybe add a link to it here.

Sorry, something went wrong.

Uh oh!

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

All reactions

@edoardopirovano edoardopirovano Nov 4, 2022

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.

We do indeed. Added a link.

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.

aeisenberg
aeisenberg reviewed Nov 4, 2022
View reviewed changes
Comment thread src/upload-lib.ts Outdated
environment
);

sarif = pruneInvalidResults(sarif, logger);

@aeisenberg aeisenberg Nov 4, 2022

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.

Do we want to gate this with an undocumented environment variable? So that individual users can turn this back on if they really, really want to?

We can consider also feature flagging this, but that feels like something too heavy-weight.

Sorry, something went wrong.

Uh oh!

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

All reactions

@edoardopirovano edoardopirovano Nov 4, 2022

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.

Sure. This code is hopefully very temporary but it can't hurt to have an escape hatch if a user needs to disable it for some reason.

Sorry, something went wrong.

Uh oh!

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

All reactions
@edoardopirovano
Prune results of Ruby query from SARIF
862a512
@edoardopirovano
edoardopirovano force-pushed the edoardo/prune-ruby branch from 9157344 to 862a512 Compare November 4, 2022 14:57
@edoardopirovano
edoardopirovano requested a review from aeisenberg November 4, 2022 14:59
aeisenberg
aeisenberg approved these changes Nov 4, 2022
View reviewed changes

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

Code LGTM. @aibaars, thanks for verifying this is working on code scanning.

Sorry, something went wrong.

Uh oh!

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

All reactions
@edoardopirovano
edoardopirovano merged commit a8cabaf into main Nov 4, 2022
@edoardopirovano
edoardopirovano deleted the edoardo/prune-ruby branch November 4, 2022 17:01
This was referenced Nov 4, 2022
Merge main into releases/v2 #1345
Merged
Merge releases/v2 into releases/v1 #1347
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes
+1 more reviewer
@aibaars aibaars aibaars left review comments
Reviewers whose approvals may not affect merge requirements

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

@edoardopirovano @aeisenberg @aibaars
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.