Title: Java: make all code-scanning queries diff-informed by jbj · Pull Request #17846 · github/codeql · GitHub
Open Graph Title: Java: make all code-scanning queries diff-informed by jbj · Pull Request #17846 · github/codeql
X Title: Java: make all code-scanning queries diff-informed by jbj · Pull Request #17846 · github/codeql
Description: With these changes, all queries in the code-scanning suite will be diff-informed. This PR is a draft for now because I haven't found a good way to test all these changes. But before I go further, I'd like a review from @aschackmull on whether the approach taken here is what we want at all.
#17190 made all the straightforward data-flow queries diff-informed. To cover all the remaining ones, I introduced two new concepts into the data-flow library:
The idea that a source or sink has selected locations, which are locations that will eventually be associated with this source/sink in the query. This was necessary because many queries select not the exact source or sink but something closely related to it.
has{Source,Sink}InDiffRange, encapsulating the recurring pattern of checking whether a given data-flow configuration has sources or sinks in the diff range at all. This pattern came up a lot in queries where a secondary data-flow configuration was made diff-informed, such as a configuration for finding sinks for the main data-flow configuration. I put these new predicates on DataFlow::Global, but I don't feel too confident about that. Maybe they should be defaults on DataFlow::Configuration instead, intended to be called but not overridden. Or maybe there should be a helper module in DataFlow that deals only with this matter, like DataFlow::DiffInformed
Open Graph Description: With these changes, all queries in the code-scanning suite will be diff-informed. This PR is a draft for now because I haven't found a good way to test all these changes. But before I go furthe...
X Description: With these changes, all queries in the code-scanning suite will be diff-informed. This PR is a draft for now because I haven't found a good way to test all these changes. But before I go fu...
Opengraph URL: https://github.com/github/codeql/pull/17846
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eb3f57a4-a614-1c64-a08f-e654f207d6c0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B03E:14634B:518581:6FBFC4:6A586DD2 |
| html-safe-nonce | 3a0e8847e8064a38191f12c5de12f84ed3576a877bcccb87d5558d315ba96a45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDNFOjE0NjM0Qjo1MTg1ODE6NkZCRkM0OjZBNTg2REQyIiwidmlzaXRvcl9pZCI6IjI2OTI0NzIyODA3Nzk2MDY1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0cfe80d70eb57c8ff19cc4cc12b420f691d7cf67ec06b7ab368e171ad569256b |
| hovercard-subject-tag | pull_request:2145767702 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/codeql/pull/17846/files |
| twitter:image | https://avatars.githubusercontent.com/u/308293?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/308293?s=400&v=4 |
| og:image:alt | With these changes, all queries in the code-scanning suite will be diff-informed. This PR is a draft for now because I haven't found a good way to test all these changes. But before I go furthe... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width