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

feat(os-pkg): add data sources #1636

Merged
merged 12 commits into from
Jan 28, 2022
Merged

feat(os-pkg): add data sources #1636

merged 12 commits into from
Jan 28, 2022

Conversation

afdesk
Copy link
Contributor

@afdesk afdesk commented Jan 27, 2022

Description

Add data sources to the result for OS packages.

$ trivy image --format json alpine:latest
...
      "Vulnerabilities": [
        {
          "VulnerabilityID": "CVE-2021-36159",
          "PkgName": "apk-tools",
          "InstalledVersion": "2.12.4-r0",
          "FixedVersion": "2.12.6-r0",
          "SeveritySource": "nvd",
          "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2021-36159",
          "DataSource": {
            "Name": "Alpine Secdb",
            "URL": "https://secdb.alpinelinux.org/"
          },
         ....
}

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@afdesk afdesk requested a review from knqyf263 January 28, 2022 09:28
@knqyf263 knqyf263 merged commit 420f8ab into main Jan 28, 2022
@knqyf263 knqyf263 deleted the ds_ospkg branch January 28, 2022 18:41
masahiro331 pushed a commit to masahiro331/trivy that referenced this pull request Feb 6, 2022
liamg pushed a commit that referenced this pull request Jun 7, 2022
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