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

baseImageRemediation not in html report #160

Open
MishaVeldhoen opened this issue Jun 1, 2023 · 0 comments
Open

baseImageRemediation not in html report #160

MishaVeldhoen opened this issue Jun 1, 2023 · 0 comments

Comments

@MishaVeldhoen
Copy link

MishaVeldhoen commented Jun 1, 2023

When testing a container (snyk container scan my_image:my_tag --file=Dockerfile --json), the output contains a section with a suggestion for a base image upgrade (example below). This suggestion is one of the most useful parts of the report, however, it doesn't appear in the html report generated by snyk-to-html.

  "docker": {
    "baseImage": "ubuntu:20.04",
    "baseImageRemediation": {
      "code": "REMEDIATION_AVAILABLE",
      "advice": [
        {
          "message": "Base Image    Vulnerabilities  Severity\nubuntu:20.04  12               0 critical, 0 high, 2 medium, 10 low\n"
        },
        {
          "message": "Recommendations for base image upgrade:\n",
          "bold": true
        },
        {
          "message": "Major upgrades",
          "bold": true
        },
        {
          "message": "Base Image      Vulnerabilities  Severity\nubuntu:kinetic  9                0 critical, 0 high, 2 medium, 7 low\n"
        }
      ]
    },
    "binariesVulns": {
      "issuesData": {},
      "affectedPkgs": {}
    }
  },
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

No branches or pull requests

1 participant