Skip to content

Commit 999d345

Browse files
go-cose v1.1.0 and ccatoken v1.2.0 (#31)
* fix a test assertion * fix CI problem with new macos instances Signed-off-by: Thomas Fossati <[email protected]>
1 parent 5c5ad82 commit 999d345

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.github/workflows/ci-go-cover.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Coverage
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/setup-go@v2
27+
- uses: actions/setup-go@v3
2828
with:
2929
go-version: "1.17.2"
3030
- name: Checkout code

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
matrix:
1313
os: [macos-latest, ubuntu-latest]
1414
steps:
15+
- uses: actions/setup-go@v3
16+
with:
17+
go-version: "1.17.2"
1518
- name: Checkout code
1619
uses: actions/checkout@v2
1720
with:

.github/workflows/linters.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Lint
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/setup-go@v2
11+
- uses: actions/setup-go@v3
1212
with:
1313
go-version: "1.17.2"
1414
- name: Checkout code

cmd/cca/check_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func Test_CheckCmd_regression_bug_18(t *testing.T) {
210210
},
211211
)
212212

213-
expectedErr := `verifying CCA evidence from ccatoken.cbor using key from not-a-public-key.jwk: unable to verify platform token: unable to instantiate verifier: ES256: algorithm mismatch`
213+
expectedErr := `verifying CCA evidence from ccatoken.cbor using key from not-a-public-key.jwk: unable to verify platform token: unable to instantiate verifier: ES256: invalid public key`
214214

215215
err = cmd.Execute()
216216
assert.EqualError(t, err, expectedErr)

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ require (
1010
github.com/spf13/viper v1.11.0
1111
github.com/stretchr/testify v1.8.1
1212
github.com/veraison/apiclient v0.0.3-0.20220426121030-d5eddd28c5e1
13-
github.com/veraison/ccatoken v1.1.0
14-
github.com/veraison/go-cose v1.0.0
13+
github.com/veraison/ccatoken v1.2.0
14+
github.com/veraison/go-cose v1.1.0
1515
github.com/veraison/psatoken v1.2.0
1616
)
1717

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,14 @@ github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69
368368
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
369369
github.com/veraison/apiclient v0.0.3-0.20220426121030-d5eddd28c5e1 h1:gV8v131P4xXw4dQhPD35Q/gJJicLdK3JLveNaHMzBtQ=
370370
github.com/veraison/apiclient v0.0.3-0.20220426121030-d5eddd28c5e1/go.mod h1:H8YDx1ixM24GYP/aLbhq+HJsej0lVUqFCRIL5Uu4B0o=
371-
github.com/veraison/ccatoken v1.1.0 h1:U0Z5fOQRsdz3ksvvxVzTITczo+kfRxIlkWahJNP6Irs=
372-
github.com/veraison/ccatoken v1.1.0/go.mod h1:qh/KBwsrhPyGJqttlh8PU56wt1rPkUCX9A3ZAA/53Nc=
371+
github.com/veraison/ccatoken v1.2.0 h1:vwZDeaM39LkNne5xFxeqevuAmxjhiSDTBGyd8Jg682Q=
372+
github.com/veraison/ccatoken v1.2.0/go.mod h1:HzEj02zAn/iKYsgZTJQcUbNok4lhqdpaeAjAEeYlTPk=
373373
github.com/veraison/eat v0.0.0-20210331113810-3da8a4dd42ff/go.mod h1:+kxt8iuFiVvKRs2VQ1Ho7bbAScXAB/kHFFuP5Biw19I=
374374
github.com/veraison/eat v0.0.0-20220117140849-ddaf59d69f53 h1:5gnX2TrGd/Xz8DOp2OaLtg/jLoIubSUTrgz6iZ58pJ4=
375375
github.com/veraison/eat v0.0.0-20220117140849-ddaf59d69f53/go.mod h1:+kxt8iuFiVvKRs2VQ1Ho7bbAScXAB/kHFFuP5Biw19I=
376376
github.com/veraison/go-cose v1.0.0-rc.1/go.mod h1:7ziE85vSq4ScFTg6wyoMXjucIGOf4JkFEZi/an96Ct4=
377-
github.com/veraison/go-cose v1.0.0 h1:Jxirc0rl3gG7wUFgW+82tBQNeK8T8e2Bk1Vd298ob4A=
378-
github.com/veraison/go-cose v1.0.0/go.mod h1:7ziE85vSq4ScFTg6wyoMXjucIGOf4JkFEZi/an96Ct4=
377+
github.com/veraison/go-cose v1.1.0 h1:AalPS4VGiKavpAzIlBjrn7bhqXiXi4jbMYY/2+UC+4o=
378+
github.com/veraison/go-cose v1.1.0/go.mod h1:7ziE85vSq4ScFTg6wyoMXjucIGOf4JkFEZi/an96Ct4=
379379
github.com/veraison/psatoken v1.2.0 h1:PeHy6YUbhFE9Z9xaQBoAMpMWUEqSHrF2JgfcwMTmFIA=
380380
github.com/veraison/psatoken v1.2.0/go.mod h1:2tHLoYMOIS4V4mO8MJT4VstRtpO50FLmhoOR35FyIr4=
381381
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=

0 commit comments

Comments
 (0)