Skip to content

Commit 29521f5

Browse files
authored
Use nginx-bot to checkout & commit renovate PR's (#8774)
1 parent 0af69b8 commit 29521f5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/renovate-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,29 @@ jobs:
4343
needs: check
4444
permissions:
4545
contents: write
46+
id-token: write
4647
if: ${{ needs.check.outputs.generate == 'true' }}
4748
steps:
49+
- name: Azure login
50+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
51+
with:
52+
client-id: ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
53+
tenant-id: ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
54+
subscription-id: ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
55+
56+
- name: Setup secrets
57+
id: secrets
58+
run: |
59+
echo "Setting secrets for job"
60+
NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
61+
echo "::add-mask::$NGINX_PAT"
62+
echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
63+
4864
- name: Checkout repository
4965
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5066
with:
5167
ref: ${{ github.head_ref }}
68+
token: ${{ steps.secrets.outputs.NGINX_PAT }}
5269

5370
- name: Configure GOPROXY
5471
id: goproxy

0 commit comments

Comments
 (0)