ci: fix remote git url
This commit is contained in:
5
.github/workflows/dependency-check.yml
vendored
5
.github/workflows/dependency-check.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user