feat: add post-analyzers (#3640)

Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io>
This commit is contained in:
Teppei Fukuda
2023-02-20 13:08:26 +02:00
committed by GitHub
parent baea3997d2
commit 75c96bd968
31 changed files with 1830 additions and 524 deletions

View File

@@ -3,6 +3,7 @@
package integration
import (
"github.com/aquasecurity/trivy/pkg/fanal/analyzer"
"os"
"path/filepath"
"testing"
@@ -62,6 +63,7 @@ func TestModule(t *testing.T) {
// Run Trivy
err = execute(osArgs)
assert.NoError(t, err)
defer analyzer.DeregisterAnalyzer("spring4shell")
// Compare want and got
compareReports(t, tt.golden, outputFile)