Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion general/summary/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ const (
Security MarkdownSection = "security"
BuildInfo MarkdownSection = "build-info"
Upload MarkdownSection = "upload"
Evidence MarkdownSection = "evidence"
)

const (
markdownFileName = "markdown.md"
finalSarifFileName = "final.sarif"
)

var markdownSections = []MarkdownSection{Security, BuildInfo, Upload}
var markdownSections = []MarkdownSection{Security, BuildInfo, Upload, Evidence}

func (ms MarkdownSection) String() string {
return string(ms)
Expand Down Expand Up @@ -185,6 +186,8 @@ func invokeSectionMarkdownGeneration(section MarkdownSection) error {
return generateBuildInfoMarkdown()
case Upload:
return generateUploadMarkdown()
case Evidence:
return generateEvidenceMarkdown()
default:
return fmt.Errorf("unknown section: %s", section)
}
Expand All @@ -209,6 +212,14 @@ func generateBuildInfoMarkdown() error {
return buildInfoSummary.GenerateMarkdown()
}

func generateEvidenceMarkdown() error {
evidenceSummary, err := commandsummary.NewEvidenceSummary()
if err != nil {
return fmt.Errorf("error generating evidence markdown: %w", err)
}
return evidenceSummary.GenerateMarkdown()
}

func generateUploadMarkdown() error {
if should, err := shouldGenerateUploadSummary(); err != nil || !should {
log.Debug("Skipping upload summary generation due build-info data to avoid duplications...")
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ require (

// replace github.com/jfrog/jfrog-cli-artifactory => github.com/jfrog/jfrog-cli-artifactory v0.4.1-0.20250718083259-4a60768eb51b

// replace github.com/jfrog/jfrog-cli-core/v2 => github.com/jfrog/jfrog-cli-core/v2 v2.59.2-0.20250717045550-6e019038f578
// will be replaced after merging the PR in jfrog-cli-core
replace github.com/jfrog/jfrog-cli-core/v2 => github.com/mnsboev/jfrog-cli-core/v2 v2.0.0-20250727082212-a54b8a4c4ab3

// replace github.com/jfrog/jfrog-client-go => github.com/jfrog/jfrog-client-go v1.28.1-0.20250717041744-d3ea4d99f4e7

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ github.com/jfrog/jfrog-apps-config v1.0.1 h1:mtv6k7g8A8BVhlHGlSveapqf4mJfonwvXYL
github.com/jfrog/jfrog-apps-config v1.0.1/go.mod h1:8AIIr1oY9JuH5dylz2S6f8Ym2MaadPLR6noCBO4C22w=
github.com/jfrog/jfrog-cli-artifactory v0.5.1 h1:C1H8x6ldg7VmKIb4F8OZKm0PJbBrlA73y2tmoy/s9m8=
github.com/jfrog/jfrog-cli-artifactory v0.5.1/go.mod h1:RXz0AZ5qVEOhanXRGmC4+atqr29ZtIeV5kUCbNGtVj4=
github.com/jfrog/jfrog-cli-core/v2 v2.59.3 h1:AlFC9l3Cwvx2FzuAP0txxEjZPDjv5bpO7YPTOjHp7HA=
github.com/jfrog/jfrog-cli-core/v2 v2.59.3/go.mod h1:Itfva9wqPMkUVBuNpKw0Oe4qoPlt0PdXfmWqf7fBebU=
github.com/jfrog/jfrog-cli-platform-services v1.10.0 h1:O+N/VAF+QjFvq9xkHpmzKLcdl9aJu3IP204Su0L14rw=
github.com/jfrog/jfrog-cli-platform-services v1.10.0/go.mod h1:qbu4iqBST9x8LgD8HhzUm91iOB3vHqtoGmaxOnmw0ok=
github.com/jfrog/jfrog-cli-security v1.20.2 h1:GGpSdEnxcmUbK5Iinm8LN0EUG9KAm1+K958yYtcqxeQ=
Expand Down Expand Up @@ -452,6 +450,8 @@ github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrk
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mnsboev/jfrog-cli-core/v2 v2.0.0-20250727082212-a54b8a4c4ab3 h1:2UOGCSzsf6QbTa0tkvuBEYpi8dQi8EBqbH2DbYWQyH4=
github.com/mnsboev/jfrog-cli-core/v2 v2.0.0-20250727082212-a54b8a4c4ab3/go.mod h1:Itfva9wqPMkUVBuNpKw0Oe4qoPlt0PdXfmWqf7fBebU=
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
Expand Down
Loading