Skip to content

Commit 32287cd

Browse files
author
Nicholas Bergesen
authored
Code review updated
1 parent 6962e71 commit 32287cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

content/actions/using-workflows/reusing-workflows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ You can define inputs and secrets, which can be passed from the caller workflow
105105
{% endraw %}
106106
{% if actions-inherit-secrets-reusable-workflows %}
107107
For details of the syntax for defining inputs and secrets, see [`on.workflow_call.inputs`](/actions/reference/workflow-syntax-for-github-actions#onworkflow_callinputs), [`on.workflow_call.secrets`](/actions/reference/workflow-syntax-for-github-actions#onworkflow_callsecrets) and [`on.workflow_call.secrets.inherit`](/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callsecretsinherit).
108+
1. In the reusable workflow, reference the input or secret that you defined in the `on` key in the previous step. If the secrets are inherited using `secrets: inherit`, you can reference them even if they are not defined in the `on` key.
108109
{%else%}
109110
For details of the syntax for defining inputs and secrets, see [`on.workflow_call.inputs`](/actions/reference/workflow-syntax-for-github-actions#onworkflow_callinputs) and [`on.workflow_call.secrets`](/actions/reference/workflow-syntax-for-github-actions#onworkflow_callsecrets).
111+
1. In the reusable workflow, reference the input or secret that you defined in the `on` key in the previous step.
110112
{%endif%}
111-
1. In the reusable workflow, reference the input or secret that you defined in the `on` key in the previous step. If the secrets are inherited using `secrets: inherit`, you can reference them even if they are not defined in the `on` key.
112113

113114
{% raw %}
114115
```yaml

content/actions/using-workflows/workflow-syntax-for-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161

162162
#### `on.workflow_call.secrets.inherit`
163163

164-
Use the `inherit` keyword to pass all the calling workflow's secrets to the called workflow. This includes all secrets the calling workflow has access to, and also includes organization, repository, and environment secrets. The `inherit` keyword can also be used to pass secrets across repositories within the same organization, or across organizations within the same enterprise.
164+
Use the `inherit` keyword to pass all the calling workflow's secrets to the called workflow. This includes all secrets the calling workflow has access to, namely organization, repository, and environment secrets. The `inherit` keyword can be used to pass secrets across repositories within the same organization, or across organizations within the same enterprise.
165165

166166
#### Example
167167

0 commit comments

Comments
 (0)