From ab4e49ed912690dcd58d0bdaa7d2824962711aa2 Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 30 Dec 2024 16:30:08 +0900 Subject: [PATCH] fix no context is allowed at `jobs.`.steps.with.entrypoint` --- rule_expression.go | 2 +- testdata/ok/issue-495_with_args.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rule_expression.go b/rule_expression.go index 2328c700b..ecaf887b1 100644 --- a/rule_expression.go +++ b/rule_expression.go @@ -290,7 +290,7 @@ func (rule *RuleExpression) VisitStep(n *Step) error { rule.checkString(i.Value, "jobs..steps.with") } } - rule.checkString(e.Entrypoint, "") + rule.checkString(e.Entrypoint, "jobs..steps.with") rule.checkString(e.Args, "jobs..steps.with") spec = e.Uses } diff --git a/testdata/ok/issue-495_with_args.yaml b/testdata/ok/issue-495_with_args.yaml index b34cb4731..fc183a219 100644 --- a/testdata/ok/issue-495_with_args.yaml +++ b/testdata/ok/issue-495_with_args.yaml @@ -10,4 +10,5 @@ jobs: steps: - uses: docker://example.com:latest with: + entrypoint: --arg "${{ inputs.test }}" args: --arg "${{ inputs.test }}"