Skip to content
Closed
Changes from all 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
3 changes: 1 addition & 2 deletions evidence/create_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
evidenceService "github.com/jfrog/jfrog-client-go/evidence/services"
clientlog "github.com/jfrog/jfrog-client-go/utils/log"
"os"
"strings"
)

type createEvidenceBase struct {
Expand Down Expand Up @@ -78,7 +77,7 @@

func (c *createEvidenceBase) setMarkdown(statement *intoto.Statement) error {
if c.markdownFilePath != "" {
if !strings.HasSuffix(c.markdownFilePath, ".md") {

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Go-Sec ubuntu-latest

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Go-Sec ubuntu-latest

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / ubuntu

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Lint ubuntu

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / windows

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / macos

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

undefined: strings (typecheck)

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

undefined: strings) (typecheck)

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Lint windows

undefined: strings

Check failure on line 80 in evidence/create_base.go

View workflow job for this annotation

GitHub Actions / Lint macos

undefined: strings
return fmt.Errorf("file '%s' does not have a .md extension", c.markdownFilePath)
}
markdown, err := os.ReadFile(c.markdownFilePath)
Expand All @@ -98,7 +97,7 @@
}

evidenceDetails := evidenceService.EvidenceDetails{
SubjectUri: strings.Split(repoPath, "@")[0],
SubjectUri: repoPath,
DSSEFileRaw: envelope,
}
body, err := evidenceManager.UploadEvidence(evidenceDetails)
Expand Down
Loading