Skip to content
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

chore: Introduce Option to specify repository URL #42

Merged
merged 4 commits into from
May 10, 2024

Conversation

PeterSchafer
Copy link
Contributor

@PeterSchafer PeterSchafer commented May 8, 2024

This PR adds the option to specify the repository associated with a given path. This can be used if the automatic detection of a repository URL doesn't work.

Therefore it introduces a data structure (scan.Target) to specify what is being scanned, which can in addition to the path hold a repository URL. The automatic URL determination is moved from the analysis logic to the new data structure.

to make repository URL configurable
@PeterSchafer PeterSchafer marked this pull request as ready for review May 10, 2024 11:46
@PeterSchafer PeterSchafer requested a review from a team as a code owner May 10, 2024 11:46
@PeterSchafer PeterSchafer changed the title chore: replace scan path by ScanTarget structure ... chore: Introduce Option to configure repository URL May 10, 2024
@PeterSchafer PeterSchafer changed the title chore: Introduce Option to configure repository URL chore: Introduce Option to specify repository URL May 10, 2024
@@ -76,7 +76,7 @@
"providerState": "Scan ID",
"request": {
"method": "GET",
"path": "/orgs/e7ea34c9-de0f-422c-bf2c-4654c2e2da90/scans/d164a5fa-444e-4ed6-a08f-c4e08a9f20a2",
"path": "/orgs/e7ea34c9-de0f-422c-bf2c-4654c2e2da90/scans/748d5bd0-9ce5-4cb9-876a-24c5601036ea",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have any idea why this changed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, I know. I'll fix it, I implemented these tests in a non-determinstic way 🙊

Copy link
Contributor

@teodora-sandu teodora-sandu left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@teodora-sandu teodora-sandu merged commit a1dcac0 into main May 10, 2024
13 of 15 checks passed
@teodora-sandu teodora-sandu deleted the feat/CLI-310_specify_repo_url branch May 10, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants