Skip to content

Commit 331d6a9

Browse files
committed
fix available contexts are ignored at jobs.<job_id>.with.args (fix #495)
1 parent efd7eb5 commit 331d6a9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

rule_expression.go

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

testdata/ok/issue-495_with_args.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
test:
5+
type: string
6+
7+
jobs:
8+
my_job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: docker://example.com:latest
12+
with:
13+
args: --arg "${{ inputs.test }}"

0 commit comments

Comments
 (0)