Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DIma committed Dec 10, 2024
1 parent 1b1441b commit e9796a2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/terraform_oicd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Terraform oicd
permissions:
contents: read
pages: write
id-token: write

on:
workflow_dispatch:
Expand Down
50 changes: 25 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Run Azure Login with OIDC
on:
push:
branches:
- main
# name: Run Azure Login with OIDC
# on:
# push:
# branches:
# - main

permissions:
id-token: write
contents: read
# permissions:
# id-token: write
# contents: read

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Az CLI login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Az CLI login
# uses: azure/login@v1
# 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@v1
with:
azcliversion: latest
inlineScript: |
az account show
az group list
# - name: Azure CLI script
# uses: azure/CLI@v1
# with:
# azcliversion: latest
# inlineScript: |
# az account show
# az group list

0 comments on commit e9796a2

Please sign in to comment.