@@ -33,13 +33,13 @@ import (
3333
3434func TestJobPrincipalFromIDToken (t * testing.T ) {
3535 tests := map [string ]struct {
36- Claims map [string ]interface {}
36+ Claims map [string ]any
3737 ExpectPrincipal jobPrincipal
3838 WantErr bool
3939 ErrContains string
4040 }{
4141 `Valid token authenticates with correct claims` : {
42- Claims : map [string ]interface {} {
42+ Claims : map [string ]any {
4343 "aud" : "sigstore" ,
4444 "exp" : 0 ,
4545 "iss" : "https://agent.buildkite.com" ,
@@ -55,7 +55,7 @@ func TestJobPrincipalFromIDToken(t *testing.T) {
5555 WantErr : false ,
5656 },
5757 `Token missing organization_slug claim should be rejected` : {
58- Claims : map [string ]interface {} {
58+ Claims : map [string ]any {
5959 "aud" : "sigstore" ,
6060 "exp" : 0 ,
6161 "iss" : "https://agent.buildkite.com" ,
@@ -66,7 +66,7 @@ func TestJobPrincipalFromIDToken(t *testing.T) {
6666 ErrContains : "organization_slug" ,
6767 },
6868 `Token missing pipeline_slug claim should be rejected` : {
69- Claims : map [string ]interface {} {
69+ Claims : map [string ]any {
7070 "aud" : "sigstore" ,
7171 "exp" : 0 ,
7272 "iss" : "https://agent.buildkite.com" ,
@@ -127,11 +127,11 @@ func withClaims(token *oidc.IDToken, data []byte) {
127127
128128func TestName (t * testing.T ) {
129129 tests := map [string ]struct {
130- Claims map [string ]interface {}
130+ Claims map [string ]any
131131 ExpectName string
132132 }{
133133 `Valid token authenticates with correct claims` : {
134- Claims : map [string ]interface {} {
134+ Claims : map [string ]any {
135135 "aud" : "sigstore" ,
136136 "exp" : 0 ,
137137 "iss" : "https://agent.buildkite.com" ,
0 commit comments