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 Xray Source Control Service #451

Merged
merged 55 commits into from
Sep 12, 2023
Merged

Conversation

EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Aug 21, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Generating GitInfoContext before scanning a project, and passes it to cli-core.
In the case the user have XSC server enabled, scan results will be visible in the UI.
In case not, regular Xray flow will be executed.

Only Scan-Repository command sends the GitInfoContext as Scan-Pull-Request will need extra fields.

jfrog/jfrog-client-go#823
jfrog/jfrog-cli-core#940

@EyalDelarea EyalDelarea added the improvement Automatically generated release notes label Aug 22, 2023
@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Aug 24, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Aug 24, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 11, 2023
@github-actions
Copy link
Contributor

@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Sep 11, 2023
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 11, 2023
go.mod Outdated Show resolved Hide resolved
Comment on lines 206 to 209
// In some VCS providers, there are no projects, fallback to the repository owner.
if gitProject == "" {
gitProject = sc.RepoOwner
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// In some VCS providers, there are no projects, fallback to the repository owner.
if gitProject == "" {
gitProject = sc.RepoOwner
}

Comment on lines 194 to 197
if err != nil {
log.Warn(fmt.Sprintf("failed getting latest commit, repository: %s, branch: %s. error: %s ", sc.RepoName, scannedBranch, err.Error()))
return
}
Copy link
Contributor

Choose a reason for hiding this comment

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

return error

Comment on lines 202 to 204
if err != nil {
log.Warn(fmt.Sprintf("failed getting repository information, for repository: %s, branch: %s. error: %s ", sc.RepoName, scannedBranch, err.Error()))
return
Copy link
Contributor

Choose a reason for hiding this comment

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

return error

Co-authored-by: Michael Sverdlov <sverdlov93@gmail.com>
@EyalDelarea EyalDelarea merged commit 29324f6 into jfrog:dev Sep 12, 2023
6 of 7 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.

3 participants