Skip to content

Commit e32672f

Browse files
authored
Use nginx-bot to checkout & commit renovate PR's (#8773)
1 parent 7ecedbb commit e32672f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/renovate-build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,26 @@ jobs:
4545
contents: write
4646
if: ${{ needs.check.outputs.generate == 'true' }}
4747
steps:
48+
- name: Azure login
49+
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
50+
with:
51+
client-id: ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
52+
tenant-id: ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
53+
subscription-id: ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
54+
55+
- name: Setup secrets
56+
id: secrets
57+
run: |
58+
echo "Setting secrets for job"
59+
NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
60+
echo "::add-mask::$NGINX_PAT"
61+
echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
62+
4863
- name: Checkout repository
4964
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5065
with:
5166
ref: ${{ github.head_ref }}
67+
token: ${{ steps.secrets.outputs.NGINX_PAT }}
5268

5369
- name: Configure GOPROXY
5470
id: goproxy

0 commit comments

Comments
 (0)