fix(ci): authenticate checkout via .netrc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user