Skip to content

Commit

Permalink
fix: creator email label argoproj#14122
Browse files Browse the repository at this point in the history
Signed-off-by: Tianchu Zhao <[email protected]>
  • Loading branch information
tczhao committed Jan 24, 2025
1 parent f6f73e7 commit 2bcd407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/creator/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func UserActionLabel(ctx context.Context, action ActionType) map[string]string {
res[common.LabelKeyActor] = dnsFriendly(claims.Subject)
}
if claims.Email != "" {
res[common.LabelKeyActorEmail] = dnsFriendly(claims.Email)
res[common.LabelKeyActorEmail] = dnsFriendly(strings.Replace(claims.Email, "@", ".at.", 1))
}
if claims.PreferredUsername != "" {
res[common.LabelKeyActorPreferredUsername] = dnsFriendly(claims.PreferredUsername)
Expand Down

0 comments on commit 2bcd407

Please sign in to comment.