File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 2626 permissions :
2727 contents : read
2828 actions : read # for 8398a7/action-slack
29+ id-token : write # for Azure login
2930 steps :
3031 - name : Data
3132 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4849 commit_message: message_sanitized,
4950 }
5051
52+ - name : Azure login
53+ uses : azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
54+ with :
55+ client-id : ${{ secrets.AZURE_VAULT_CLIENT_ID }}
56+ tenant-id : ${{ secrets.AZURE_VAULT_TENANT_ID }}
57+ subscription-id : ${{ secrets.AZURE_VAULT_SUBSCRIPTION_ID }}
58+
59+ - name : Setup secrets
60+ id : secrets
61+ run : |
62+ echo "Setting secrets for job"
63+ SLACK_WEBHOOK=$(az keyvault secret show --name slack-pipeline-webhook --vault-name ${{ secrets.NIC_KEYVAULT_NAME }} --query value -o tsv)
64+ echo "::add-mask::$SLACK_WEBHOOK"
65+ echo "SLACK_WEBHOOK=$SLACK_WEBHOOK" >> $GITHUB_OUTPUT
66+
5167 - name : Send Notification
5268 uses : 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
5369 with :
8399 }]
84100 }
85101 env :
86- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK }}
102+ SLACK_WEBHOOK_URL : ${{ steps. secrets.outputs .SLACK_WEBHOOK }}
Original file line number Diff line number Diff line change @@ -635,6 +635,7 @@ jobs:
635635 permissions :
636636 contents : read
637637 actions : read
638+ id-token : write
638639 strategy :
639640 fail-fast : false
640641 matrix :
@@ -645,6 +646,21 @@ jobs:
645646 with :
646647 ref : ${{ inputs.release_branch }}
647648
649+ - name : Azure login
650+ uses : azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
651+ with :
652+ client-id : ${{ secrets.AZURE_VAULT_CLIENT_ID }}
653+ tenant-id : ${{ secrets.AZURE_VAULT_TENANT_ID }}
654+ subscription-id : ${{ secrets.AZURE_VAULT_SUBSCRIPTION_ID }}
655+
656+ - name : Setup secrets
657+ id : secrets
658+ run : |
659+ echo "Setting secrets for job"
660+ SLACK_WEBHOOK=$(az keyvault secret show --name slack-pipeline-webhook --vault-name ${{ secrets.NIC_KEYVAULT_NAME }} --query value -o tsv)
661+ echo "::add-mask::$SLACK_WEBHOOK"
662+ echo "SLACK_WEBHOOK=$SLACK_WEBHOOK" >> $GITHUB_OUTPUT
663+
648664 - name : Get Image manifest digest
649665 id : digest
650666 run : |
@@ -701,4 +717,4 @@ jobs:
701717 }]
702718 }
703719 env :
704- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK }}
720+ SLACK_WEBHOOK_URL : ${{ steps. secrets.outputs .SLACK_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments