Skip to content

Commit

Permalink
Gets example github actions pktoken
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanHeilman committed Jul 28, 2024
1 parent 81d2115 commit c77c3dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gha_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ func TestGithub(t *testing.T) {
require.NoError(t, err)
require.NotNil(t, pkt)
fmt.Println("New PK token generated")
pktCom, _ := pkt.Compact()
fmt.Println(string(pktCom))

ver, err := verifier.New(op)
require.NoError(t, err)

err = ver.VerifyPKToken(context.TODO(), pkt)
require.NoError(t, err)
require.Error(t, err)
}

0 comments on commit c77c3dc

Please sign in to comment.