Skip to content

Commit 49dfb6e

Browse files
committed
add(oidc): Copilot setup steps workflow for automated validation and manual testing
1 parent 9a66d33 commit 49dfb6e

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
10+
copilot-setup-steps:
11+
runs-on: ubuntu-latest
12+
environment: demo
13+
14+
# Set the permissions to the lowest permissions possible needed for your steps.
15+
# Copilot will be given its own token for its operations.
16+
permissions:
17+
# 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.
18+
contents: write
19+
20+
# You can define any steps you want, and they will run before the agent starts.
21+
# If you do not check out your code, Copilot will do this for you.
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v5
25+
26+
# Setup Azure Federated Identity Credentials
27+
- name: Azure CLI Login
28+
uses: azure/login@v2
29+
with:
30+
client-id: ${{ secrets.ARM_CLIENT_ID }}
31+
tenant-id: ${{ secrets.ARM_TENANT_ID }}
32+
subscription-id: ${{ secrets.ARM_SUBSCRIPTION_ID }}

0 commit comments

Comments
 (0)