@@ -345,11 +345,29 @@ jobs:
345345 name : Trigger PR for Operator
346346 runs-on : ubuntu-24.04
347347 needs : [variables,publish-helm-chart]
348+ permissions :
349+ contents : read
350+ id-token : write
348351 steps :
352+ - name : Azure login
353+ uses : azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
354+ with :
355+ client-id : ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
356+ tenant-id : ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
357+ subscription-id : ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
358+
359+ - name : Setup secrets
360+ id : secrets
361+ run : |
362+ echo "Setting secrets for job"
363+ NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
364+ echo "::add-mask::$NGINX_PAT"
365+ echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
366+
349367 - name :
350368 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
351369 with :
352- github-token : ${{ secrets.NGINX_PAT }}
370+ github-token : ${{ steps. secrets.outputs .NGINX_PAT }}
353371 script : |
354372 await github.rest.actions.createWorkflowDispatch({
355373 owner: context.repo.owner,
@@ -370,11 +388,29 @@ jobs:
370388 # name: Trigger PR for GCP Marketplace
371389 # runs-on: ubuntu-24.04
372390 # needs: [publish-helm-chart,release-plus-gcr-mktpl]
391+ # permissions:
392+ # contents: read
393+ # id-token: write
373394 # steps:
395+ # - name: Azure login
396+ # uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
397+ # with:
398+ # client-id: ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
399+ # tenant-id: ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
400+ # subscription-id: ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
401+
402+ # - name: Setup secrets
403+ # id: secrets
404+ # run: |
405+ # echo "Setting secrets for job"
406+ # NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
407+ # echo "::add-mask::$NGINX_PAT"
408+ # echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
409+
374410 # - name:
375411 # uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
376412 # with:
377- # github-token: ${{ secrets.NGINX_PAT }}
413+ # github-token: ${{ steps. secrets.outputs .NGINX_PAT }}
378414 # script: |
379415 # await github.rest.actions.createWorkflowDispatch({
380416 # owner: context.repo.owner,
@@ -391,12 +427,29 @@ jobs:
391427 # if: ${{ ! cancelled() && ! failure() && ! inputs.dry_run && ! contains(inputs.skip_step, 'azure-marketplace') }}
392428 # name: Trigger CNAB Build for Azure Marketplace
393429 # runs-on: ubuntu-24.04
430+ # permissions:
431+ # contents: read
432+ # id-token: write
394433 # needs: [publish-helm-chart,release-plus-azure-mktpl]
395434 # steps:
435+ # - name: Azure login
436+ # uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
437+ # with:
438+ # client-id: ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
439+ # tenant-id: ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
440+ # subscription-id: ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
441+
442+ # - name: Setup secrets
443+ # id: secrets
444+ # run: |
445+ # echo "Setting secrets for job"
446+ # NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
447+ # echo "::add-mask::$NGINX_PAT"
448+ # echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
396449 # - name:
397450 # uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
398451 # with:
399- # github-token: ${{ secrets.NGINX_PAT }}
452+ # github-token: ${{ steps. secrets.outputs .NGINX_PAT }}
400453 # script: |
401454 # await github.rest.actions.createWorkflowDispatch({
402455 # owner: context.repo.owner,
0 commit comments