Giter Site home page Giter Site logo

Comments (7)

fatihtokus avatar fatihtokus commented on August 23, 2024 1

Hi @korallo159 ,

I am glad to hear that your issue has been addressed. I have created a separated issue for the summary feature and closing this. Could you please give us a star for support?

Regards,
Fatih

from scan2html.

fatihtokus avatar fatihtokus commented on August 23, 2024

Hi @korallo159 ,

Thank you for reporting the issue. I will quickly investigate and revert back to you.

Regards,
Fatih

from scan2html.

fatihtokus avatar fatihtokus commented on August 23, 2024

Can you use this command 'trivy scan2html k8s --report=all all -n my-namespace --format json -o results.json resultnew.html'? (ref: https://aquasecurity.github.io/trivy/v0.49/docs/target/kubernetes/)
And which version of scan2html (trivy scan2html -h) and which version of trivy? Also can you check the if you are getting a json like below?
{
"ClusterName": "minikube",
"Vulnerabilities": [
{
"Namespace": "default",
"Kind": "Deployment",
"Name": "app",
"Results": [
{
"Target": "ubuntu:latest (ubuntu 22.04)",
"Class": "os-pkgs",
"Type": "ubuntu",
"Vulnerabilities": [
{
"VulnerabilityID": "CVE-111-111",
.....

from scan2html.

korallo159 avatar korallo159 commented on August 23, 2024

`
scan2html v0.2.2

Usage: trivy scan2html [-h,--help] command target filename`

The json output looks different, I use latest trivy version.

{
"ClusterName": "",
"Resources": [
{
"Namespace": "
",
"Kind": "ServiceAccount",
"Name": "default",
"Metadata": {
"ImageConfig": {
"architecture": "",
"created": "0001-01-01T00:00:00Z",
"os": "",
"rootfs": {
"type": "",
"diff_ids": null
},
"config": {}
}
},
"Results": [
{
"Target": "ServiceAccount/default",
"Class": "config",
"Type": "kubernetes",
"MisconfSummary": {
"Successes": 102,
"Failures": 0,
"Exceptions": 0
}
}
]
},
{
....

from scan2html.

fatihtokus avatar fatihtokus commented on August 23, 2024

Thanks for the reply @korallo159 , I am still investigating this issue. Please, could you try this command 'trivy scan2html k8s --report=all all -n my-namespace --format json -o results.json resultnew.html' and see if the result changes

from scan2html.

fatihtokus avatar fatihtokus commented on August 23, 2024

Hi @korallo159 ,

Thanks for your patience. I have fixed your issue with the latest release(v0.2.4). Please follow these steps:

  • trivy plugin uninstall scan2html
  • trivy plugin install github.com/fatihtokus/scan2html
  • trivy scan2html trivy k8s cluster interactive_result.html

Note: the command($trivy scan2html k8s --report=all all -n my-namespace resultnew.html) you use is creating a summary of the result which is not suitable for scan2html at the moment. But if you think that would be useful, we can support that as well, please let us know.
image

Regards,
Fatih

from scan2html.

korallo159 avatar korallo159 commented on August 23, 2024

Hi, I generated and I confirm that I see contents now
I think it would be nice to have also summary in html.
Thank you

from scan2html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.