[CI] Revert "Restrict [actions].DEFAULT_ACTIONS_URL to only github or self (#25581)"

This reverts commit 67bd9d4f1e.

(cherry picked from commit 0547e94023)
This commit is contained in:
Earl Warren 2023-07-03 09:45:12 +02:00
parent d0ffbd112c
commit d21ad654ad
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 33 additions and 139 deletions

View file

@ -184,7 +184,7 @@ func generateTaskContext(t *actions_model.ActionTask) *structpb.Struct {
"workspace": "", // string, The default working directory on the runner for steps, and the default location of your repository when using the checkout action.
// additional contexts
"gitea_default_actions_url": setting.Actions.DefaultActionsURL.URL(),
"gitea_default_actions_url": setting.Actions.DefaultActionsURL,
})
if err != nil {
log.Error("structpb.NewStruct failed: %v", err)