-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Exclude some queries from query suites by lowering their precision. #19507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e8a4b9f
to
dabeddb
Compare
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 lowers the precision of several hardcoded credentials queries across Java, Go, and C#, excludes them from all query suites, and updates the corresponding integration-test expectations and change notes.
- Lowered precision from medium to low for hardcoded credential queries in Java, Go, and C#.
- Removed these queries from all query-suite expected listings and added them to
not_included_in_qls.expected
. - Added change notes in Java, Go, and C# to document the removals.
Reviewed Changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
javascript/ql/integration-tests/query-suite/*.qls.expected | Removed HardcodedCredentials entries from JS query suites |
java/ql/src/change-notes/2025-05-16-hardcoded-credentials.md | Added note for removed Java hardcoded-credential-api-call query |
java/ql/src/Security/CWE/CWE-798/HardcodedCredentialsApiCall.ql | Lowered precision from medium to low |
java/ql/integration-tests/java/query-suite/*.expected | Updated not_included_in_qls.expected , removed from suites |
go/ql/src/change-notes/2025-05-16-hardcoded-credentials.md | Added note for removed Go hardcoded-credentials query |
go/ql/src/Security/CWE-798/HardcodedCredentials.ql | Lowered precision from medium to low |
go/ql/integration-tests/query-suite/*.expected | Updated not_included_in_qls.expected , removed from suites |
csharp/ql/src/change-notes/2025-05-16-hardcoded-credentials.md | Added note for removed C# credential-related queries |
csharp/ql/src/Security Features/CWE-798/*.ql | Lowered precision from medium to low |
csharp/ql/integration-tests/posix/query-suite/*.expected | Updated not_included_in_qls.expected , removed from suites |
Comments suppressed due to low confidence (2)
javascript/ql/src/Security/CWE-798/HardcodedCredentials.ql:7
- The JavaScript HardcodedCredentials query still has
@precision medium
—it should be lowered to@precision low
to match the updates in other languages.
* @precision medium
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.
Ruby / C# 👍
The linked issue describes why the precisions are lowered (and it also includes a list of specific query IDs).
The failing integrationtests are unrelated.