fix(ci): authenticate checkout via .netrc
This commit is contained in:
@@ -15,9 +15,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
CI_TOKEN: ${{ secrets.CI_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "token_len=${#CI_TOKEN}"
|
cat > "$HOME/.netrc" <<EOF
|
||||||
echo "token_sha=$(printf %s "${CI_TOKEN}" | sha256sum | cut -d' ' -f1)"
|
machine 10.8.0.52
|
||||||
git clone --depth 1 "http://${CI_TOKEN}@10.8.0.52:8080/andrew/plagin_tokens.git" src
|
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
|
cd src
|
||||||
|
|
||||||
- name: Install Bun
|
- name: Install Bun
|
||||||
|
|||||||
Reference in New Issue
Block a user