Skip to content

Commit

Permalink
security: Use OAuth to connect to Azure in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Nov 19, 2024
1 parent df13bdf commit 8b52e97
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ jobs:

static-test:
name: Static test
permissions:
contents: read
id-token: write
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand All @@ -285,7 +288,9 @@ jobs:
- name: Login to Azure
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

- name: Run tests
run: |
Expand Down Expand Up @@ -877,6 +882,9 @@ jobs:
integration-test-linux:
name: Integration test (Linux ${{ matrix.os }})
permissions:
contents: read
id-token: write
needs:
- build-release-linux
- init
Expand Down Expand Up @@ -912,7 +920,9 @@ jobs:
- name: Login to Azure
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}

- name: Deploy Bicep
run: |
Expand Down

0 comments on commit 8b52e97

Please sign in to comment.