Skip to content

Commit 28d2706

Browse files
matibouxsubatoimchammer01
authored
Fix allowed contexts for reusable workflow secrets/inputs (#40392)
Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
1 parent ba073ff commit 28d2706

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The following table lists the restrictions on where each context and special fun
101101
| `jobs.<job_id>.name` | `github, needs, strategy, matrix, vars, inputs` | None |
102102
| `jobs.<job_id>.outputs.<output_id>` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, steps, inputs` | None |
103103
| `jobs.<job_id>.runs-on` | `github, needs, strategy, matrix, vars, inputs` | None |
104-
| `jobs.<job_id>.secrets.<secrets_id>` | `github, needs, strategy, matrix, secrets, inputs, vars` | None |
104+
| `jobs.<job_id>.secrets.<secret_id>` | `github, needs, strategy, matrix, secrets, inputs, vars` | None |
105105
| `jobs.<job_id>.services` | `github, needs, strategy, matrix, vars, inputs` | None |
106106
| `jobs.<job_id>.services.<service_id>.credentials` | `github, needs, strategy, matrix, env, vars, secrets, inputs` | None |
107107
| `jobs.<job_id>.services.<service_id>.env.<env_id>` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, inputs` | None |
@@ -115,7 +115,7 @@ The following table lists the restrictions on where each context and special fun
115115
| `jobs.<job_id>.steps.working-directory` | `github, needs, strategy, matrix, job, runner, env, vars, secrets, steps, inputs` | `hashFiles` |
116116
| `jobs.<job_id>.strategy` | `github, needs, vars, inputs` | None |
117117
| `jobs.<job_id>.timeout-minutes` | `github, needs, strategy, matrix, vars, inputs` | None |
118-
| `jobs.<job_id>.with.<with_id>` | `github, needs, strategy, matrix, inputs, vars` | None |
118+
| `jobs.<job_id>.with.<input_id>` | `github, needs, strategy, matrix, inputs, vars` | None |
119119
| `on.workflow_call.inputs.<inputs_id>.default` | `github, inputs, vars` | None |
120120
| `on.workflow_call.outputs.<output_id>.value` | `github, jobs, vars, inputs` | None |
121121

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

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

15941594
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/reference/workflows-and-actions/metadata-syntax#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.
15951595

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

15981598
## `jobs.<job_id>.secrets`
15991599

@@ -1651,7 +1651,7 @@ jobs:
16511651

16521652
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.
16531653

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

16561656
## Filter pattern cheat sheet
16571657

0 commit comments

Comments
 (0)