fix: use REGISTRY_PAT secret for git auth (exists on all repos)
ci / buf (push) Successful in 13s
ci / codegen-check (push) Failing after 55s

This commit is contained in:
2026-08-29 22:53:26 -07:00
parent 9b643d9a48
commit 93b0188826
+4 -4
View File
@@ -32,9 +32,9 @@ jobs:
# path to trust in the first place.
- name: checkout
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
run: |
url=$(echo "${GITHUB_SERVER_URL}" | sed -E "s#(https?://)#\1x-access-token:${GIT_TOKEN}@#")
url=$(echo "${GITHUB_SERVER_URL}" | sed -E "s#(https?://)#\1x-access-token:${REGISTRY_PAT}@#")
git clone "${url}/${GITHUB_REPOSITORY}.git" .
git checkout "${GITHUB_SHA}"
@@ -53,9 +53,9 @@ jobs:
# Same reason as the buf job: golang:1.25 has no Node.js either.
- name: checkout
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
run: |
url=$(echo "${GITHUB_SERVER_URL}" | sed -E "s#(https?://)#\1x-access-token:${GIT_TOKEN}@#")
url=$(echo "${GITHUB_SERVER_URL}" | sed -E "s#(https?://)#\1x-access-token:${REGISTRY_PAT}@#")
git clone "${url}/${GITHUB_REPOSITORY}.git" .
git checkout "${GITHUB_SHA}"