Skip to content

dramf/md

Repository files navigation

md

md is plugin for Trivy output to save report in markdown format

Installation

$ trivy plugin install github.com/dramf/md

Usage

Using CLI

Formatted report will be saved to the file trivy-report.md

$ trivy image alpine --output plugin=md --format json

Using GitHub Actions

jobs:
  scan:
    name: Trivy-scan
    runs-on: ubuntu-22.04
    steps:

      - name: Install Trivy
        uses: aquasecurity/[email protected]

      - name: Install plugin
        run: trivy plugin install github.com/dramf/md

      - name: Run Trivy vulnerability scanner in repo mode
        uses: aquasecurity/[email protected]
        with:
          format: 'json'
          output: 'plugin=md'
          skip-setup-trivy: true

      # Show report in a job summary
      - name: Get Summary
        run: cat trivy-report.md >> $GITHUB_STEP_SUMMARY

How report looks like when added to a job summary:

summary

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages