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

Add external git repositories to search path for custom queries by edoardopirovano · Pull Request #440 · github/codeql-action · GitHub

Add external git repositories to search path for custom queries - #440

Merged
edoardopirovano merged 1 commit into
github:mainfrom
edoardopirovano:add-search-path
Apr 21, 2021
Merged

edoardopirovano merged 1 commit into
github:mainfrom
edoardopirovano:add-search-path

Conversation

edoardopirovano commented Apr 7, 2021
edited by adityasharad
Loading

Copy link
Copy Markdown
Contributor

When running a query from an external repository, we may need some additional dependencies that are specified in this repository. To find these, we should add the the root of the external repository to the search path in our CLI invocations. At the moment, this is done in resolve queries but not in database analyze. This PR adds the search path in the latter call. As a result of this, we may perform multiple database analyze invocations (one for each external repository, with the respective search path in each one) and have to merge the SARIF results into one file in order to not break consumers who are expecting all custom query results to be in a single file.

edoardopirovano force-pushed the add-search-path branch 2 times, most recently from 9e8e6ab to 1319b59 Compare April 7, 2021 15:40

aeisenberg 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

Sorry, this slipped through the cracks. Reviewed now. I don't think we can be changing the format of the config file.

Comment thread src/analyze.ts
Comment thread src/config-utils.ts
Comment thread src/analyze.ts

aeisenberg 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

Looks good now that I understand it all.

Comment thread src/config-utils.ts

Copy link
Copy Markdown
Contributor Author

Pushed a rebase to fix conflict, will merge once tests pass.

edoardopirovano merged commit 578f9fc into github:main Apr 21, 2021
edoardopirovano deleted the add-search-path branch April 21, 2021 16:41
github-actions Bot mentioned this pull request Apr 21, 2021
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