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 — Add capability to filter queries by aeisenberg · Pull Request #1098 · github/codeql-action

Conversation

@aeisenberg

@aeisenberg aeisenberg commented Jun 14, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This change adds a query-filters property to the codeql-config file.

This property is an array of exclude/include entries for a query
suite. These filters are appended to the generated query suite files
and used to filter queries after they are selected.

A related change is that now, all pack references are run in a single
query suite, which has the query filters appended to them.

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
aeisenberg added 2 commits June 14, 2022 12:07
@aeisenberg
Add capability to filter queries
40b2800
This change adds a `query-filters` property to the codeql-config file.

This property is an array of `exclude`/`include` entries for a query
suite. These filters are appended to the generated query suite files
and used to filter queries after they are selected.

A related change is that now, all pack references are run in a single
query suite, which has the query filters appended to them.
@aeisenberg
Merge branch 'aeisenberg/js-yaml-typings' into aeisenberg/remove-queries
06e27d3
@aeisenberg
aeisenberg requested a review from a team as a code owner June 14, 2022 19:40
@aeisenberg
aeisenberg force-pushed the aeisenberg/remove-queries branch 5 times, most recently from 153ab19 to b0c630e Compare June 14, 2022 20:55
@aeisenberg
Add integration tests for query filters
eec34d5
@aeisenberg
aeisenberg force-pushed the aeisenberg/remove-queries branch from b0c630e to eec34d5 Compare June 14, 2022 21:10
@aeisenberg aeisenberg mentioned this pull request Jun 15, 2022
How to disable particular rule by its ID from GitHub workflow? github/codeql#7937
Closed
@aeisenberg
Update changelog
428caf0
henrymercer
henrymercer reviewed Jun 15, 2022
View reviewed changes
Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread .github/workflows/query-filters.yml Resolved

Uh oh!

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

@aeisenberg
Extract query-filters test into a composite action
59ca9b5
Removes duplicated yaml.

Also add some better typings.
@aeisenberg
aeisenberg force-pushed the aeisenberg/remove-queries branch from 6772540 to 59ca9b5 Compare June 15, 2022 23:32
henrymercer
henrymercer approved these changes Jun 16, 2022
View reviewed changes

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

A few minor comments, but generally this looks good to me.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread CHANGELOG.md Resolved

Uh oh!

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

Comment thread tests/multi-language-repo/.github/codeql/codeql-config-query-filters1.yml Outdated
@@ -0,0 +1,10 @@
name: "CodeQL config 1"

@henrymercer henrymercer Jun 16, 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.

Thanks for naming the tests in the workflow file. We could potentially add those names here too.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/multi-language-repo/.github/codeql/codeql-config-query-filters3.yml Outdated
- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

@henrymercer henrymercer Jun 16, 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.

Suggested change
# Removes out js/path-injection
# Removes js/path-injection

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/multi-language-repo/.github/codeql/codeql-config-query-filters2.yml Outdated
- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

@henrymercer henrymercer Jun 16, 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.

Suggested change
# Removes out js/path-injection
# Removes js/path-injection

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/multi-language-repo/.github/codeql/codeql-config-query-filters1.yml Outdated
- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

@henrymercer henrymercer Jun 16, 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.

Suggested change
# Removes out js/path-injection
# Removes js/path-injection

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread .github/query-filter-test/action.yml Resolved

Uh oh!

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

aeisenberg added 4 commits June 15, 2022 17:18
@aeisenberg
Spelling, capitalization, and better descriptions
777b778
@aeisenberg
Merge remote-tracking branch 'upstream/main' into aeisenberg/remove-q…
6db77ee
…ueries
@aeisenberg
Merge branch 'aeisenberg/check-sarif-action' into aeisenberg/remove-q…
d7459f0
…ueries
@aeisenberg
Merge branch 'aeisenberg/check-sarif-action' into aeisenberg/remove-q…
7c412c6
…ueries
@aeisenberg
aeisenberg merged commit 25cbd7a into aeisenberg/check-sarif-action Jun 16, 2022
@aeisenberg
aeisenberg deleted the aeisenberg/remove-queries branch June 16, 2022 00:42
aeisenberg added a commit that referenced this pull request Jun 16, 2022
@aeisenberg
Merge pull request #1098 from github/aeisenberg/remove-queries
80ecdcd
Add capability to filter queries
This was referenced Jun 21, 2022
Merge main into releases/v2 #1107
Merged
Merge releases/v2 into releases/v1 #1109
Merged
@aeisenberg

aeisenberg commented Jun 21, 2022

Copy link
Copy Markdown
Contributor Author

I am reverting this feature and creating a new release without it since we don't want this feature in GHES 3.6.

All reactions

Sorry, something went wrong.

Uh oh!

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

aeisenberg added a commit that referenced this pull request Jun 21, 2022
@aeisenberg
Revert "Add capability to filter queries #1098"
8ff3367
#1098
This reverts commit 777b778.
This reverts commit 59ca9b5.
This reverts commit eec34d5.
This reverts commit 40b2800.
@aeisenberg aeisenberg mentioned this pull request Jun 21, 2022
Revert "Add capability to filter queries #1098" #1111
Merged
3 tasks done
aeisenberg added a commit that referenced this pull request Jun 21, 2022
@aeisenberg
Revert "Add capability to filter queries #1098"
2435647
#1098
This reverts commit 777b778.
This reverts commit 59ca9b5.
This reverts commit eec34d5.
This reverts commit 40b2800.
aeisenberg added a commit that referenced this pull request Jun 21, 2022
@aeisenberg
Revert "Add capability to filter queries #1098"
99d4397
#1098
This reverts commit 777b778.
This reverts commit 59ca9b5.
This reverts commit eec34d5.
This reverts commit 40b2800.
aeisenberg added a commit that referenced this pull request Jun 21, 2022
@aeisenberg
Merge pull request #1111 from github/aeisenberg/revert-1098
2e0c6ca
Revert "Add capability to filter queries #1098"
This was referenced Jun 22, 2022
Merge main into releases/v2 #1114
Merged
Merge releases/v2 into releases/v1 #1117
Merged
aeisenberg added a commit that referenced this pull request Jun 27, 2022
@aeisenberg
Revert "Revert "Add capability to filter queries #1098""
2a70419
This reverts commit 99d4397.
@aeisenberg aeisenberg mentioned this pull request Jun 27, 2022
Revert "Revert "Add capability to filter queries #1098"" #1127
Merged
3 tasks done
@alizenguyen alizenguyen mentioned this pull request Aug 10, 2022
Fix CodeQL issues nasa/openmct#4417
Closed
This was referenced Aug 17, 2022
Merge main into releases/v2 #1189
Closed
Merge main into releases/v2 #1192
Merged
Merge releases/v2 into releases/v1 #1195
Merged
@DentonGentry DentonGentry mentioned this pull request Jan 9, 2023
cmd/tailscale: disable HTTPS verification for QNAP auth. tailscale/tailscale#6919
Merged
@coderabbitai coderabbitai Bot mentioned this pull request May 26, 2026
Linux wayland csmashe/typewhisper-linux#4
Merged
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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

2 participants

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