Skip to content

Commit be47a75

Browse files
authored
Change git push reference in dependabot workflow
Update the git push command to use github.head_ref.
1 parent 92307b1 commit be47a75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
git config --global user.name "RedTurtle CI BOT"
4545
git add dependabot/requirements.txt sbom.spdx.json
4646
git commit -m "Auto-generate file at $(date)" || exit 0
47-
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }}
47+
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref_name }}
48+
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.head_ref }}
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)