chore: rename act_runner references to runner (#38791)

The runner repository moved to https://gitea.com/gitea/runner, update references.
This commit is contained in:
silverwind
2026-08-05 18:53:50 +02:00
committed by GitHub
parent deccd53c24
commit c98a1597c9
9 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ func ArtifactContexter() func(next http.Handler) http.Handler {
return
}
// New act_runner uses jwt to authenticate
// New runner uses jwt to authenticate
tID, err := actions_service.ParseAuthorizationToken(req)
var task *actions.ActionTask
@@ -160,7 +160,7 @@ func ArtifactContexter() func(next http.Handler) http.Handler {
return
}
} else {
// Old act_runner uses GITEA_TOKEN to authenticate
// Old runner uses GITEA_TOKEN to authenticate
authToken := strings.TrimPrefix(authHeader, "Bearer ")
task, err = actions.GetRunningTaskByToken(req.Context(), authToken)
+1 -1
View File
@@ -69,7 +69,7 @@ func validateArtifactHash(ctx *ArtifactContext, artifactName string) bool {
func parseArtifactItemPath(ctx *ArtifactContext) (string, string, bool) {
// itemPath is generated from upload-artifact action
// it's formatted as {artifact_name}/{artfict_path_in_runner}
// act_runner in host mode on Windows, itemPath is joined by Windows slash '\'
// runner in host mode on Windows, itemPath is joined by Windows slash '\'
itemPath := util.PathJoinRelX(ctx.Req.URL.Query().Get("itemPath"))
artifactName := strings.Split(itemPath, "/")[0]
artifactPath := strings.TrimPrefix(itemPath, artifactName+"/")