Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
azure ad oidc testing
  • Loading branch information
gauravnegi01 authored Feb 6, 2025
1 parent f3aacd1 commit 9d2f8cb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# File: .github/workflows/workflow.yml

name: Run Azure Login with OIDC
on: [push]

permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Azure CLI script
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
az account show

0 comments on commit 9d2f8cb

Please sign in to comment.