Use artifacts v4 jwt if available

This commit is contained in:
Christopher Homberger
2024-01-21 21:22:03 +01:00
parent f17cad1bbe
commit 58a3ef40e8
2 changed files with 9 additions and 2 deletions

View File

@@ -47,6 +47,9 @@ func NewReporter(ctx context.Context, cancel context.CancelFunc, client client.C
if v := task.Context.Fields["token"].GetStringValue(); v != "" {
oldnew = append(oldnew, v, "***")
}
if v := task.Context.Fields["gitea_runtime_token"].GetStringValue(); v != "" {
oldnew = append(oldnew, v, "***")
}
for _, v := range task.Secrets {
oldnew = append(oldnew, v, "***")
}