fix: Action TOKEN
This commit is contained in:
@@ -25,12 +25,10 @@ jobs:
|
||||
else
|
||||
echo "Secret TOKEN_BUILD is set"
|
||||
fi
|
||||
|
||||
git clone --recurse-submodules -c "url.https://token:${{ secrets.TOKEN_BUILD }}@git.datadunia.com/.insteadOf=https://git.datadunia.com/" https://git.datadunia.com/devops/wireguard-vpn.git
|
||||
git config --global http."https://git.datadunia.com/".extraheader "Authorization: token ${{ secrets.TOKEN_BUILD }}"
|
||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader || true
|
||||
git config --global http."https://git.datadunia.com/".extraheader "Authorization: Bearer ${{ secrets.TOKEN_BUILD }}"
|
||||
git config --global core.askPass ""
|
||||
git clone --recurse-submodules https://git.datadunia.com/devops/wireguard-vpn.git .
|
||||
|
||||
# Debug
|
||||
ls -la app/frontend
|
||||
|
||||
@@ -98,9 +96,8 @@ jobs:
|
||||
- name: Cleanup Git Config
|
||||
if: always() # Pastikan tetap jalan meski job gagal
|
||||
run: |
|
||||
# git config --global --unset-all url."https://token:${{ secrets.TOKEN_BUILD }}@${{ gitea.server_url | replace("https://", "") }}/".insteadOf
|
||||
# Hapus header dan config agar tidak tersimpan di ~/.gitconfig host
|
||||
git config --global --unset http.extraheader
|
||||
git config --global --unset core.askPass
|
||||
- name: Cleanup Git Config
|
||||
if: always()
|
||||
run: |
|
||||
git config --global --unset-all http."https://git.datadunia.com/".extraheader
|
||||
git config --global --unset core.askPass
|
||||
Reference in New Issue
Block a user