Skip to content

Commit ab4e49e

Browse files
committed
fix no context is allowed at jobs.<job_id>.steps.with.entrypoint`
1 parent 331d6a9 commit ab4e49e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rule_expression.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (rule *RuleExpression) VisitStep(n *Step) error {
290290
rule.checkString(i.Value, "jobs.<job_id>.steps.with")
291291
}
292292
}
293-
rule.checkString(e.Entrypoint, "")
293+
rule.checkString(e.Entrypoint, "jobs.<job_id>.steps.with")
294294
rule.checkString(e.Args, "jobs.<job_id>.steps.with")
295295
spec = e.Uses
296296
}

testdata/ok/issue-495_with_args.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ jobs:
1010
steps:
1111
- uses: docker://example.com:latest
1212
with:
13+
entrypoint: --arg "${{ inputs.test }}"
1314
args: --arg "${{ inputs.test }}"

0 commit comments

Comments
 (0)