fix(ci): authenticate checkout via .netrc

This commit is contained in:
Andrew Emelyaneko
2026-11-02 15:07:25 +03:00
parent e0948773be
commit a33f097b91
+7 -3
View File
@@ -15,9 +15,13 @@ jobs:
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
run: |
echo "token_len=${#CI_TOKEN}"
echo "token_sha=$(printf %s "${CI_TOKEN}" | sha256sum | cut -d' ' -f1)"
git clone --depth 1 "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git" src
cat > "$HOME/.netrc" <<EOF
machine 10.8.0.52
login ${CI_TOKEN}
password x
EOF
chmod 600 "$HOME/.netrc"
git clone --depth 1 "http://10.8.0.52:8080/andrew/plagin_tokens.git" src
cd src
- name: Install Bun