1
0
mirror of synced 2025-12-23 11:54:18 -05:00
This commit is contained in:
Laura Coursen
2021-05-11 15:20:24 -05:00
committed by GitHub
parent 0fa8ba7b6e
commit a8524638ad

View File

@@ -725,7 +725,9 @@ jobs:
#### Example using action inside a different private repository than the workflow #### Example using action inside a different private repository than the workflow
Your workflow must checkout the private repository and reference the action locally. You will need to generate a [personal access token](/github/authenticating-to-github/creating-a-personal-access-token) and add it to your [repository](/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) or [organization](/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization). You will need to replace `PERSONAL_ACCESS_TOKEN` in the example below with the name of the secret you created. Your workflow must checkout the private repository and reference the action locally. Generate a personal access token and add the token as an encrypted secret. For more information, see "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)" and "[Encrypted secrets](/actions/reference/encrypted-secrets)."
Replace `PERSONAL_ACCESS_TOKEN` in the example with the name of your secret.
{% raw %} {% raw %}
```yaml ```yaml