FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add capability to filter queries by aeisenberg · Pull Request #1098 · github/codeql-action · GitHub

Add capability to filter queries - #1098

Merged
aeisenberg merged 9 commits into
aeisenberg/check-sarif-actionfrom
aeisenberg/remove-queries
Jun 16, 2022
Merged

aeisenberg merged 9 commits into
aeisenberg/check-sarif-actionfrom
aeisenberg/remove-queries

Conversation

aeisenberg commented Jun 14, 2022
edited
Loading

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.

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 requested a review from a team as a code owner June 14, 2022 19:40
aeisenberg force-pushed the aeisenberg/remove-queries branch 5 times, most recently from 153ab19 to b0c630e Compare June 14, 2022 20:55
Comment thread src/analyze.ts Outdated
Comment thread src/analyze.ts
Comment thread .github/workflows/query-filters.yml Outdated
Removes duplicated yaml.

Also add some better typings.
aeisenberg force-pushed the aeisenberg/remove-queries branch from 6772540 to 59ca9b5 Compare June 15, 2022 23:32

henrymercer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Comment thread CHANGELOG.md Outdated
@@ -0,0 +1,10 @@
name: "CodeQL config 1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
# Removes out js/path-injection
# Removes js/path-injection

- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
# Removes out js/path-injection
# Removes js/path-injection

- include:
tags contain: external/cwe/cwe-022

# Removes out js/path-injection

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
# Removes out js/path-injection
# Removes js/path-injection

Comment thread .github/query-filter-test/action.yml Outdated
aeisenberg merged commit 25cbd7a into aeisenberg/check-sarif-action Jun 16, 2022
aeisenberg deleted the aeisenberg/remove-queries branch June 16, 2022 00:42
aeisenberg added a commit that referenced this pull request Jun 16, 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.

aeisenberg added a commit that referenced this pull request Jun 21, 2022
#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
#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
#1098
This reverts commit 777b778.
This reverts commit 59ca9b5.
This reverts commit eec34d5.
This reverts commit 40b2800.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL