Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 9 additions & 8 deletions artifactory/utils/commandsummary/buildinfosummary.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ import (

buildInfo "github.com/jfrog/build-info-go/entities"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils/container"
"github.com/jfrog/jfrog-client-go/utils/log"
)

const (
basicSummaryUpgradeNotice = "<a href=\"%s\">🐸 Enable the linkage to Artifactory</a>\n\n"
modulesTitle = "📦 Modules published to Artifactory by this workflow"
minTableColumnLength = 400
markdownSpaceFiller = "&nbsp;"
NonScannedResult = "non-scanned"
basicSummaryUpgradeNotice = "<a href=\"%s\">🐸 Enable the linkage to Artifactory</a>\n\n"
modulesTitle = "📦 Modules published to Artifactory by this workflow"
minTableColumnLength = 400
markdownSpaceFiller = "&nbsp;"
NonScannedResult = "non-scanned"
ManifestJsonFile = "manifest.json"
AttestationsModuleIdPrefix string = "attestations"
)

var (
Expand Down Expand Up @@ -290,7 +291,7 @@ func isSupportedModule(module *buildInfo.Module) bool {
return false
}
if module.Type == buildInfo.Docker {
return !strings.HasPrefix(module.Id, container.AttestationsModuleIdPrefix)
return !strings.HasPrefix(module.Id, AttestationsModuleIdPrefix)
}
return true
}
Expand All @@ -300,7 +301,7 @@ func createDockerMultiArchTitle(module *buildInfo.Module) string {
parentImageName := strings.Split(module.Parent, ":")[0]
var sha256 string
for _, artifact := range module.Artifacts {
if artifact.Name == container.ManifestJsonFile {
if artifact.Name == ManifestJsonFile {
sha256 = artifact.Sha256
break
}
Expand Down
Loading