Skip to content

Commit 978b01d

Browse files
committed
fix(actions): use stdlib uuid for OIDC
Follow upstream commit 32728fc and avoid reintroducing github.com/google/uuid as a direct dependency.
1 parent 0468d0f commit 978b01d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/actions/oidc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"time"
1414
"unicode"
1515
"unicode/utf8"
16+
"uuid"
1617

1718
actions_model "gitea.dev/models/actions"
1819
"gitea.dev/models/perm"
@@ -23,7 +24,6 @@ import (
2324
"gitea.dev/services/oauth2_provider"
2425

2526
"github.com/golang-jwt/jwt/v5"
26-
"github.com/google/uuid"
2727
)
2828

2929
const (
@@ -197,7 +197,7 @@ func createOIDCClaims(ctx context.Context, task *actions_model.ActionTask, audie
197197
ExpiresAt: jwt.NewNumericDate(now.Add(actionsOIDCTokenExpiry)),
198198
NotBefore: jwt.NewNumericDate(now),
199199
IssuedAt: jwt.NewNumericDate(now),
200-
ID: uuid.NewString(),
200+
ID: uuid.New().String(),
201201
},
202202
Actor: run.TriggerUser.Name,
203203
ActorID: strconv.FormatInt(run.TriggerUser.ID, 10),

0 commit comments

Comments
 (0)