Skip to content

Commit 617adc8

Browse files
authored
Clarified limitations of copilot-setup-steps concerning use of reusable workflow
Clarified limitations of `copilot-setup-steps` concerning use of reusable workflow
1 parent b11d9bf commit 617adc8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

content/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ In your `copilot-setup-steps.yml` file, you can only customize the following set
9292

9393
For more information on these options, see [AUTOTITLE](/actions/writing-workflows/workflow-syntax-for-github-actions#jobs).
9494

95+
> [!NOTE]
96+
> The `copilot-setup-steps` job does not support calling reusable workflows with `uses`. Define setup logic directly in the job's `steps` instead or extract shared setup into a composite action and reference it within a step. For more information, see [AUTOTITLE](/actions/sharing-automations/creating-actions/creating-a-composite-action).
97+
9598
Any value that is set for the `fetch-depth` option of the `actions/checkout` action will be overridden to allow the agent to rollback commits upon request, while mitigating security risks. For more information, see [`actions/checkout/README.md`](https://github.com/actions/checkout/blob/main/README.md).
9699

97100
Your `copilot-setup-steps.yml` file will automatically be run as a normal {% data variables.product.prodname_actions %} workflow when changes are made, so you can see if it runs successfully. This will show alongside other checks in a pull request where you create or modify the file.

0 commit comments

Comments
 (0)