diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml index 5a17ab8..ea3518c 100644 --- a/.github/workflows/dependency-check.yml +++ b/.github/workflows/dependency-check.yml @@ -237,8 +237,9 @@ jobs: git config user.name "Dependency Bot" git config user.email "bot@gitea.actions" - # Set up authenticated remote URL - git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}" + # Set up authenticated remote URL (works with both http and https) + SERVER_URL="${{ github.server_url }}" + git remote set-url origin "${SERVER_URL/\/\//\/\/${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@}/${{ github.repository }}" # Commit and push changes git checkout -b "deps/auto-upgrade-${{ github.run_number }}"