ci(validate): use actions/checkout for private pmm-lps with built-in token
Anonymous git clone of the private d-bis/cross-chain-pmm-lps repo hangs on the Gitea runner waiting for credentials. Use actions/checkout@v4 with `repository`, `path`, and `token: secrets.GITHUB_TOKEN` so the in-org runner token handles auth cleanly in both deploy-to-phoenix.yml and validate-on-pr.yml.
This commit is contained in:
@@ -12,20 +12,19 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# The cw* mesh matrix and deployment-status validators read
|
||||
# cross-chain-pmm-lps/config/*.json. That repo is private and
|
||||
# .gitmodules mixes Gitea HTTPS with git@github.com: SSH URLs,
|
||||
# so `submodules: recursive` on the parent checkout isn't safe.
|
||||
# Pull only the pmm-lps repo into a sibling path using the
|
||||
# built-in Actions token (scoped to the same org).
|
||||
- name: Materialize cross-chain-pmm-lps (config only)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# The cw* mesh matrix and deployment-status validators read
|
||||
# cross-chain-pmm-lps/config/*.json. That submodule uses mixed
|
||||
# SSH/HTTPS remotes, so instead of recursing submodules (which
|
||||
# would fail on git@github.com: URLs without a deploy key),
|
||||
# we shallow-clone the Gitea mirror for config reads only.
|
||||
if [ ! -f cross-chain-pmm-lps/config/deployment-status.json ]; then
|
||||
rm -rf cross-chain-pmm-lps
|
||||
git clone --depth=1 \
|
||||
https://gitea.d-bis.org/d-bis/cross-chain-pmm-lps.git \
|
||||
cross-chain-pmm-lps
|
||||
fi
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: d-bis/cross-chain-pmm-lps
|
||||
path: cross-chain-pmm-lps
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run repo validation gate
|
||||
run: |
|
||||
|
||||
@@ -13,13 +13,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Materialize cross-chain-pmm-lps (config only)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ ! -f cross-chain-pmm-lps/config/deployment-status.json ]; then
|
||||
rm -rf cross-chain-pmm-lps
|
||||
git clone --depth=1 \
|
||||
https://gitea.d-bis.org/d-bis/cross-chain-pmm-lps.git \
|
||||
cross-chain-pmm-lps
|
||||
fi
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: d-bis/cross-chain-pmm-lps
|
||||
path: cross-chain-pmm-lps
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 1
|
||||
- name: run-all-validation (no LAN, no genesis)
|
||||
run: bash scripts/verify/run-all-validation.sh --skip-genesis
|
||||
|
||||
Reference in New Issue
Block a user