Skip to content

Commit

Permalink
bump cosign to v1.12.1 (#92)
Browse files Browse the repository at this point in the history
* bump cosign to v1.12.1

Signed-off-by: Hirokuni-Kitahara1 <[email protected]>

* update go version in github workflow to 1.18

Signed-off-by: Hirokuni-Kitahara1 <[email protected]>

* remove style check workflow which is already done by lint check

Signed-off-by: Hirokuni-Kitahara1 <[email protected]>

Signed-off-by: Hirokuni-Kitahara1 <[email protected]>
  • Loading branch information
hirokuni-kitahara authored Sep 27, 2022
1 parent 14f7cab commit 7a2d417
Show file tree
Hide file tree
Showing 8 changed files with 488 additions and 990 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cross.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: compile
run: |
make build
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Checkout code
uses: actions/checkout@v2
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
66 changes: 0 additions & 66 deletions .github/workflows/style.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
${{ runner.os }}-go-
- uses: actions/setup-go@v2
with:
go-version: '1.17.x'
go-version: '1.18.x'
# - name: install ko
# run: |
# curl -L https://github.com/google/ko/releases/download/v0.8.3/ko_0.8.3_Linux_x86_64.tar.gz | tar xzf - ko && \
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: Check license headers
Expand Down
278 changes: 270 additions & 8 deletions go.mod

Large diffs are not rendered by default.

1,117 changes: 212 additions & 905 deletions go.sum

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions pkg/cosign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,12 @@ func SignBlob(blobPath string, keyPath, certPath *string, rekorURL string, noTlo
return nil, errors.Wrap(err, "failed to unmarshal rekord.Spec into *models.HashedrekordV001Schema")
}

var b64SigInTlog string
var b64CertStr string
if rekordContent != nil {
b64SigInTlog = rekordContent.Signature.Content.String()
// this will be a certificate in keyless signing, and be a public key in keyed signing
// and if this is a public key, we don't add it to the annotations
b64CertStr = rekordContent.Signature.PublicKey.Content.String()
}
if b64SigInTlog != string(b64Sig) {
return nil, fmt.Errorf("signature found in tlog is different from original one; found: %s, original: %s", b64SigInTlog, string(b64Sig))
}
tmpRawCert, err := base64.StdEncoding.DecodeString(b64CertStr)
if err != nil {
return nil, errors.Wrapf(err, "failed to decode certificate string %s", b64CertStr)
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8smanifest/provenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func parseEntry(uuid string, e models.LogEntryAnon) (*rekorCLIGetCmdOutput, erro
if err != nil {
return nil, err
}
eimpl, err := types.NewEntry(pe)
eimpl, err := types.UnmarshalEntry(pe)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7a2d417

Please sign in to comment.