···11+name: "Copilot Setup Steps"
22+33+# Automatically run the setup steps when they are changed to allow for easy validation, and
44+# allow manual testing through the repository's "Actions" tab
55+on:
66+ workflow_dispatch:
77+ push:
88+ paths:
99+ - .github/workflows/copilot-setup-steps.yml
1010+ pull_request:
1111+ paths:
1212+ - .github/workflows/copilot-setup-steps.yml
1313+1414+jobs:
1515+ # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
1616+ copilot-setup-steps:
1717+ runs-on: ubuntu-latest
1818+1919+ # Set the permissions to the lowest permissions possible needed for your steps.
2020+ # Copilot will be given its own token for its operations.
2121+ permissions:
2222+ # If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
2323+ contents: read
2424+2525+ # You can define any steps you want, and they will run before the agent starts.
2626+ # If you do not check out your code, Copilot will do this for you.
2727+ steps:
2828+ - name: Checkout code
2929+ uses: actions/checkout@v5
3030+3131+ - name: Setup Deterinate Nix
3232+ uses: DeterminateSystems/nix-installer-action@main
3333+ with:
3434+ determinate: true