From 75006a59cc4e6d18653926ec2578de5072ba6c32 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Wed, 6 Mar 2024 06:10:37 +0000 Subject: [PATCH] Support cloning remote actions from insecure Gitea instances (#508) Follow https://gitea.com/gitea/act/pulls/92 Reviewed-on: https://gitea.com/gitea/act_runner/pulls/508 Reviewed-by: Jason Song Co-authored-by: Zettat123 Co-committed-by: Zettat123 --- go.mod | 2 +- go.sum | 4 ++-- internal/app/run/runner.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 16bd62e..54b13cb 100644 --- a/go.mod +++ b/go.mod @@ -99,4 +99,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -replace github.com/nektos/act => gitea.com/gitea/act v0.259.0 +replace github.com/nektos/act => gitea.com/gitea/act v0.259.2-0.20240305080729-0cc67b881722 diff --git a/go.sum b/go.sum index 1c9ce10..5d361d0 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ code.gitea.io/gitea-vet v0.2.3 h1:gdFmm6WOTM65rE8FUBTRzeQZYzXePKSSB1+r574hWwI= code.gitea.io/gitea-vet v0.2.3/go.mod h1:zcNbT/aJEmivCAhfmkHOlT645KNOf9W2KnkLgFjGGfE= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -gitea.com/gitea/act v0.259.0 h1:jhlvqA9oDYhsPmtZkvg3qLOxC6fqJDwgF0hFR9GPDkc= -gitea.com/gitea/act v0.259.0/go.mod h1:UxZWRYqQG2Yj4+4OqfGWW5a3HELwejyWFQyU7F1jUD8= +gitea.com/gitea/act v0.259.2-0.20240305080729-0cc67b881722 h1:9yRnOcB9cCXx9wlitMjrNkiXyrEWans40s0ECy0IDVc= +gitea.com/gitea/act v0.259.2-0.20240305080729-0cc67b881722/go.mod h1:UxZWRYqQG2Yj4+4OqfGWW5a3HELwejyWFQyU7F1jUD8= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index 77877eb..5bf3672 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -209,6 +209,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report. PlatformPicker: r.labels.PickPlatform, Vars: task.Vars, ValidVolumes: r.cfg.Container.ValidVolumes, + InsecureSkipTLS: r.cfg.Runner.Insecure, } rr, err := runner.New(runnerConfig)