Skip to content

dramf/md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/setup-trivy@v0.2.2

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

      - name: Run Trivy vulnerability scanner in repo mode
        uses: aquasecurity/trivy-action@v0.29.0
        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

 
 
 

Contributors

Languages