Skip to content

Commit 7ac0885

Browse files
committed
add auth check
1 parent 83d018c commit 7ac0885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-oss.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
client-id: ${{ secrets.AZURE_VAULT_CLIENT_ID }}
6868
tenant-id: ${{ secrets.AZURE_VAULT_TENANT_ID }}
6969
subscription-id: ${{ secrets.AZURE_VAULT_SUBSCRIPTION_ID }}
70+
if: ${{ inputs.authenticated }}
7071

7172
- name: Setup secrets
7273
id: secrets
@@ -78,6 +79,7 @@ jobs:
7879
GCR_SERVICE_ACCOUNT=$(az keyvault secret show --name kic-pipeline-gcr-sa --vault-name ${{ secrets.NIC_KEYVAULT_NAME }} --query value -o tsv)
7980
echo "::add-mask::$GCR_SERVICE_ACCOUNT"
8081
echo "GCR_SERVICE_ACCOUNT=$GCR_SERVICE_ACCOUNT" >> $GITHUB_OUTPUT
82+
if: ${{ inputs.authenticated }}
8183

8284
- name: Authenticate to Google Cloud
8385
id: auth

0 commit comments

Comments
 (0)