Skip to content

Commit

Permalink
debug2
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Apr 1, 2024
1 parent 506cc92 commit 2923f05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
permissions:
id-token: write

if: github.repository == 'kubernetes-sigs/release-sdk'

steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand Down
21 changes: 20 additions & 1 deletion sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,28 @@ func (s *Signer) VerifyImage(reference string) (*SignedObject, error) {
return nil, fmt.Errorf("interface conversion error, result is not a *SignedObject: %v", o)
}

fmt.Println("<<<<<<")

fmt.Println(obj)
fmt.Println("<<<<<<")

s.signedObjs.Set(reference, obj, ttlcache.DefaultTTL)

return obj, nil
object := &SignedObject{
image: &SignedImage{
reference: item.Value().image.reference,
digest: item.Value().image.digest,
signature: item.Value().image.signature,
},
file: nil,
}

fmt.Println(">>>>>>")

fmt.Println(*object)
fmt.Println(">>>>>")

return object, nil
}

// VerifyImages can be used to validate any provided container image reference
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func TestSignImageSuccess(t *testing.T) {
// Verify the results
assert.Nil(t, err)
t.Log(res)
t.Log(res.Image())
t.Log(res.File())
assert.NotNil(t, res.File())
image := res.Image()
assert.NotNil(t, image)
Expand Down

0 comments on commit 2923f05

Please sign in to comment.