Skip to content

Commit dac15a9

Browse files
committed
Fix allowed contexts for reusable workflow secrets/inputs
1 parent 01d7ed8 commit dac15a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/actions/reference/workflows-and-actions/contexts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The following table lists the restrictions on where each context and special fun
9898
| `jobs.<job_id>.name` | `github, needs, strategy, matrix, vars, inputs` | None |
9999
| `jobs.<job_id>.outputs.<output_id>` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, steps, inputs` | None |
100100
| `jobs.<job_id>.runs-on` | `github, needs, strategy, matrix, vars, inputs` | None |
101-
| `jobs.<job_id>.secrets.<secrets_id>` | `github, needs, strategy, matrix, secrets, inputs, vars` | None |
101+
| `jobs.<job_id>.secrets.<secret_id>` | `github, needs, strategy, matrix, secrets, inputs, vars` | None |
102102
| `jobs.<job_id>.services` | `github, needs, strategy, matrix, vars, inputs` | None |
103103
| `jobs.<job_id>.services.<service_id>.credentials` | `github, needs, strategy, matrix, env, vars, secrets, inputs` | None |
104104
| `jobs.<job_id>.services.<service_id>.env.<env_id>` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, inputs` | None |
@@ -112,7 +112,7 @@ The following table lists the restrictions on where each context and special fun
112112
| `jobs.<job_id>.steps.working-directory` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, steps, inputs` | `hashFiles` |
113113
| `jobs.<job_id>.strategy` | `github, needs, vars, inputs` | None |
114114
| `jobs.<job_id>.timeout-minutes` | `github, needs, strategy, matrix, vars, inputs` | None |
115-
| `jobs.<job_id>.with.<with_id>` | `github, needs, strategy, matrix, inputs, vars` | None |
115+
| `jobs.<job_id>.with.<input_id>` | `github, needs, strategy, matrix, inputs, vars` | None |
116116
| `on.workflow_call.inputs.<inputs_id>.default` | `github, inputs, vars` | None |
117117
| `on.workflow_call.outputs.<output_id>.value` | `github, jobs, vars, inputs` | None |
118118

content/actions/reference/workflows-and-actions/workflow-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ jobs:
12071207

12081208
A pair consisting of a string identifier for the input and the value of the input. The identifier must match the name of an input defined by [`on.workflow_call.inputs.<inputs_id>`](/actions/creating-actions/metadata-syntax-for-github-actions#inputsinput_id) in the called workflow. The data type of the value must match the type defined by [`on.workflow_call.inputs.<input_id>.type`](#onworkflow_callinputsinput_idtype) in the called workflow.
12091209

1210-
Allowed expression contexts: `github`, and `needs`.
1210+
Allowed expression contexts: `github`, `needs`, `strategy`, `matrix`, `inputs`, and `vars`.
12111211

12121212
## `jobs.<job_id>.secrets`
12131213

@@ -1265,7 +1265,7 @@ jobs:
12651265

12661266
A pair consisting of a string identifier for the secret and the value of the secret. The identifier must match the name of a secret defined by [`on.workflow_call.secrets.<secret_id>`](#onworkflow_callsecretssecret_id) in the called workflow.
12671267

1268-
Allowed expression contexts: `github`, `needs`, and `secrets`.
1268+
Allowed expression contexts: `github`, `needs`, `strategy`, `matrix`, `secrets`, `inputs`, and `vars`.
12691269

12701270
## Filter pattern cheat sheet
12711271

0 commit comments

Comments
 (0)