Skip to content

Commit a92428e

Browse files
committed
fix: auto run smoke tests for members
The default GitHub workflow token isn't privileged enough to check org membership for PR authors. This prevents smoke tests for running automatically for org members. To fix this, switch to a PAT with the correct privileges for this check. Signed-off-by: Nick Hale <[email protected]>
1 parent 8a283fd commit a92428e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/smoke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
AUTHOR="${{ github.event.pull_request.user.login }}"
3838
3939
# Check for org membership
40-
MEMBERSHIP_RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
40+
MEMBERSHIP_RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token ${{ secrets.SMOKE_GH_TOKEN }}" \
4141
"https://api.github.com/orgs/$ORG/members/$AUTHOR")
4242
4343
if [ "$MEMBERSHIP_RESPONSE_CODE" -eq 204 ]; then

0 commit comments

Comments
 (0)