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

Add support for NuGet Curation Audit #159

Merged
merged 4 commits into from
Sep 5, 2024
Merged

Add support for NuGet Curation Audit #159

merged 4 commits into from
Sep 5, 2024

Conversation

igorz-jf
Copy link
Contributor

@igorz-jf igorz-jf commented Aug 27, 2024

  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Depends on:

Add support for NuGet Curation Audit

@attiasas attiasas added new feature Automatically generated release notes safe to test Approve running integration tests on a pull request labels Aug 28, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Aug 28, 2024
@attiasas attiasas self-requested a review September 5, 2024 07:20
@attiasas attiasas added improvement Automatically generated release notes and removed new feature Automatically generated release notes labels Sep 5, 2024
Copy link
Contributor

@attiasas attiasas left a comment

Choose a reason for hiding this comment

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

LGTM!
Please make sure you are sync with dev branch.

Comment on lines 757 to 763
id = strings.TrimPrefix(id, "nuget://")
allParts := strings.Split(id, ":")
if len(allParts) != 2 {
return
}
name = allParts[0]
version = allParts[1]
Copy link
Contributor

Choose a reason for hiding this comment

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

can be replaced with SplitComponentId in utils

name = allParts[0]
version = allParts[1]

downloadUrls = append(downloadUrls, strings.TrimSuffix(artiUrl, "/")+"/api/nuget/v3/"+repo+"/registration-semver2/Download/"+strings.ToLower(name)+"/"+version)
Copy link
Contributor

@attiasas attiasas Sep 5, 2024

Choose a reason for hiding this comment

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

Suggested change
downloadUrls = append(downloadUrls, strings.TrimSuffix(artiUrl, "/")+"/api/nuget/v3/"+repo+"/registration-semver2/Download/"+strings.ToLower(name)+"/"+version)
func toNugetDownloadUrl(artifactoryUrl, repo, compName, compVersion string) string {
return fmt.Sprintf("%s/api/nuget/v3/%s/registration-semver2/Download/%s/%s", strings.TrimSuffix(artifactoryUrl, "/"), repo, strings.ToLower(compName), compVersion)
}
downloadUrls = append(downloadUrls, toNugetDownloadUrl(artUrl, repo, name, version))

can be extracted to func

go.mod Outdated
@@ -118,6 +118,6 @@ require (

// replace github.com/jfrog/jfrog-client-go => github.com/jfrog/jfrog-client-go dev

// replace github.com/jfrog/build-info-go => github.com/jfrog/build-info-go dev
replace github.com/jfrog/build-info-go => github.com/igorz-jf/build-info-go v1.8.9-0.20240827110047-985682a6e584
Copy link
Contributor

Choose a reason for hiding this comment

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

can be changed to point to dev

@attiasas attiasas added the safe to test Approve running integration tests on a pull request label Sep 5, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

👍 Frogbot scanned this pull request and did not find any new security issues.


@attiasas attiasas merged commit 2243ace into jfrog:dev Sep 5, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants