From b26db065d6846391cce10513b381d0740b9c8ad3 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 2 Aug 2025 06:38:42 +0000 Subject: [PATCH] fix: vars context is allowed in default values of action inputs (#786) Resolves forgejo/runner#785 - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/786): fix: vars context is allowed in default values of action inputs Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/786 Reviewed-by: Michael Kriese Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- act/schema/action_schema.json | 1 + act/schema/schema_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/act/schema/action_schema.json b/act/schema/action_schema.json index 2b2a22f0..c0f7b69a 100644 --- a/act/schema/action_schema.json +++ b/act/schema/action_schema.json @@ -177,6 +177,7 @@ "matrix", "job", "runner", + "vars", "hashFiles(1,255)" ], "string": {} diff --git a/act/schema/schema_test.go b/act/schema/schema_test.go index 5941fc40..d7bc383f 100644 --- a/act/schema/schema_test.go +++ b/act/schema/schema_test.go @@ -140,7 +140,7 @@ inputs: default: '${{ env.GITHUB_SERVER_URL }}' repo: description: 'repo description' - default: '${{ github.repository }}' + default: '${{ github.repository }} ${{ vars.VARIABLE }}' runs: using: "composite" steps: