Skip to content

Commit 758612a

Browse files
fix: use secret correctly in bot bypass actions (#1111)
1 parent 6feca99 commit 758612a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/actions/reload-dev-portal/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
description: 'Revalidate token'
2121
required: true
2222
type: string
23+
bot-bypass-token:
24+
description: 'Bot bypass token'
25+
required: true
26+
type: string
2327

2428
runs:
2529
using: "composite"
@@ -73,7 +77,7 @@ runs:
7377
env:
7478
url: 'https://developer.hashicorp.com/api/revalidate/paths'
7579
auth: 'Authorization: Bearer ${{ inputs.revalidate-token }}'
76-
bot-bypass: '${{ secrets.DEVELOPER_BOT_BYPASS_TOKEN }}'
80+
bot-bypass: '${{ inputs.bot-bypass-token }}'
7781
run: |
7882
curl -X POST "${{ env.url }}" \
7983
-H "${{ env.auth }}" \

.github/workflows/deploy-udr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ jobs:
5858
head_sha: ${{ github.event.after }}
5959
dev-portal-deploy-hook-prod: ${{ secrets.DEV_PORTAL_DEPLOY_HOOK_PROD }}
6060
revalidate-token: ${{ secrets.REVALIDATE_TOKEN }}
61+
bot-bypass-token: ${{ secrets.DEVELOPER_BOT_BYPASS_TOKEN }}

.github/workflows/force-reload-dev-portal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ jobs:
3131
head_sha: ${{ inputs.head_sha }}
3232
dev-portal-deploy-hook-prod: ${{ secrets.DEV_PORTAL_DEPLOY_HOOK_PROD }}
3333
revalidate-token: ${{ secrets.REVALIDATE_TOKEN }}
34+
bot-bypass-token: ${{ secrets.DEVELOPER_BOT_BYPASS_TOKEN }}

0 commit comments

Comments
 (0)