Revert "actions-inherit-secrets-reusable-workflows
This commit is contained in:
@@ -157,42 +157,6 @@ jobs:
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
{% if actions-inherit-secrets-reusable-workflows %}
|
||||
|
||||
#### `on.workflow_call.secrets.inherit`
|
||||
|
||||
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.
|
||||
|
||||
#### Example
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pass-secrets-to-workflow:
|
||||
uses: ./.github/workflows/called-workflow.yml
|
||||
secrets: inherit
|
||||
```
|
||||
|
||||
```yaml
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
pass-secret-to-action:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Use a repo or org secret from the calling workflow.
|
||||
uses: echo ${{ secrets.CALLING_WORKFLOW_SECRET }}
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
{%endif%}
|
||||
|
||||
#### `on.workflow_call.secrets.<secret_id>`
|
||||
|
||||
A string identifier to associate with the secret.
|
||||
|
||||
Reference in New Issue
Block a user