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

Docker scan - map vulnerabilities to Dockerfile commands #975

Merged
merged 68 commits into from
Oct 5, 2023

Conversation

EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Sep 27, 2023

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

Enrich jf docker scan results with the origin command to the vulnerability found. And customize the docker scan table with more suitable parameters.

Before:

image

After:

image
Depends on: jfrog/jfrog-client-go#817

}()
// Preform Binary scan
extendedScanResults, cleanup, scanErrors, err := scanCmd.binaryScan()
defer cleanup()
Copy link
Contributor

Choose a reason for hiding this comment

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

cleanup can be nil?

if len(rows[i].FixedVersions) != len(rows[j].FixedVersions) {
return len(rows[i].FixedVersions) > len(rows[j].FixedVersions)
}
return rows[i].ImpactedDependencyName > rows[j].ImpactedDependencyName
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sverdlov93 this will effect the audit as well

added sort by package name after fixed version suggestion

@EyalDelarea EyalDelarea temporarily deployed to frogbot October 5, 2023 10:17 — with GitHub Actions Inactive
@EyalDelarea EyalDelarea requested a review from sverdlov93 October 5, 2023 10:17
@EyalDelarea
Copy link
Contributor Author

@sverdlov93 notice now the sort will show same packages near each other, maybe we should add other sort inside package names by so it will look better.

@EyalDelarea EyalDelarea temporarily deployed to frogbot October 5, 2023 12:21 — with GitHub Actions Inactive
@EyalDelarea EyalDelarea temporarily deployed to frogbot October 5, 2023 14:15 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023


@EyalDelarea EyalDelarea merged commit c1b7d32 into jfrog:dev Oct 5, 2023
yahavi added a commit that referenced this pull request Oct 11, 2023
yahavi added a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants