Skip to content

Commit

Permalink
fix no context is allowed at jobs.<job_id>.steps.with.entrypoint`
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Dec 30, 2024
1 parent 331d6a9 commit 1b58c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rule_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (rule *RuleExpression) VisitStep(n *Step) error {
rule.checkString(i.Value, "jobs.<job_id>.steps.with")
}
}
rule.checkString(e.Entrypoint, "")
rule.checkString(e.Entrypoint, "jobs.<job_id>.steps.with")
rule.checkString(e.Args, "jobs.<job_id>.steps.with")
spec = e.Uses
}
Expand Down
1 change: 1 addition & 0 deletions testdata/ok/issue-495_with_args.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ jobs:
steps:
- uses: docker://example.com:latest
with:
entrypoint: "${{ inputs.test }}"
args: --arg "${{ inputs.test }}"

0 comments on commit 1b58c1f

Please sign in to comment.