Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
Merge pull request #12 from stacklok/add-sigstore-icon
Browse files Browse the repository at this point in the history
fix: use sigstore icon instead of the key one
  • Loading branch information
yrobla authored Apr 26, 2024
2 parents bf48970 + 1549e3d commit f776bdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/trustyapi/trustyapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func ProcessDependency(dep string, ecosystem string, scoreThreshold float64) (st

// write provenance information
if result.Provenance.Description.Provenance.Issuer != "" {
reportBuilder.WriteString("### :key: Proof of origin (Provenance):\n")
reportBuilder.WriteString("### ![Sigstore](https://www.trustypkg.dev/icons/sigstore-horizontal.svg) Proof of origin (Provenance):\n")
reportBuilder.WriteString("Built and signed with sigstore using GitHub Actions.\n")
reportBuilder.WriteString(fmt.Sprintf("· Source repo: `%s`\n", result.Provenance.Description.Provenance.SourceRepo))
reportBuilder.WriteString(fmt.Sprintf("· Github Action Workflow: `%s`\n", result.Provenance.Description.Provenance.Workflow))
Expand Down
4 changes: 3 additions & 1 deletion pkg/trustyapi/trustyapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"log"
"strings"
"testing"
"time"
)

func TestProcessGoDependencies(t *testing.T) {
Expand All @@ -26,6 +27,7 @@ func TestProcessGoDependencies(t *testing.T) {
t.Errorf("Expected report to contain 'Archived' for %s", dep)
}
}
time.Sleep(1 * time.Second)
}
}

Expand All @@ -50,7 +52,7 @@ func TestProcessMaliciousDependencies(t *testing.T) {
ecosystem := "pypi"
scoreThreshold := 10.0

dependencies := []string{"lyft-service", "types-for-adobe", "booto3", "google-requests", "reqargs"}
dependencies := []string{"lyft-service", "types-for-adobe", "reqargs"}

for _, dep := range dependencies {
log.Printf("Analyzing dependency: %s\n", dep)
Expand Down

0 comments on commit f776bdd

Please sign in to comment.