Skip to content

Commit

Permalink
FUN.md broke when RecordObj changed to HashedRecordObj (#1633)
Browse files Browse the repository at this point in the history
* FUN.md broke when RecordObj changed to HashedRecordObj

The breakage occured sometime on or before version 1.6

I found it when running this version:
GitVersion:    1.6.0
GitCommit:     4b2c3c0
GitTreeState:  "clean"
BuildDate:     2022-03-03T17:59:06Z
GoVersion:     go1.17.8
Compiler:      gc
Platform:      darwin/amd64

Signed-off-by: Mitch Thomas <mitch.thomas@gmail.com>

* Included OpenSSF Best Practices Badge (#1628)

- OpenSSF Best Practices Badge 94%

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
Signed-off-by: Mitch Thomas <mitch.thomas@gmail.com>

* FUN.md broke when RecordObj changed to HashedRecordObj

The breakage occured sometime on or before version 1.6

I found it when running this version:
GitVersion:    1.6.0
GitCommit:     4b2c3c0
GitTreeState:  "clean"
BuildDate:     2022-03-03T17:59:06Z
GoVersion:     go1.17.8
Compiler:      gc
Platform:      darwin/amd64

Signed-off-by: Mitch Thomas <mitch.thomas@gmail.com>

Co-authored-by: Naveen <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
MitchellJThomas and naveensrinivasan authored Mar 19, 2022
1 parent cd5c8e6 commit 0e3db34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FUN.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ Now find it from the log:

```
$ uuid=$(rekor-cli search --artifact <(git rev-parse HEAD) | tail -n 1)
$ sig=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.RekordObj.signature.content)
$ cert=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.RekordObj.signature.publicKey.content)
$ sig=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.HashedRecordObj.signature.content)
$ cert=$(rekor-cli get --uuid=$uuid --format=json | jq -r .Body.HashedRecordObj.signature.publicKey.content)
$ cosign verify-blob --cert <(echo $cert | base64 --decode) --signature <(echo $sig) <(git rev-parse HEAD)
Certificate is trusted by Fulcio Root CA
Expand Down

0 comments on commit 0e3db34

Please sign in to comment.