Skip to content

A local-first personal finance app

Remove code injection for /update-vrt (#4151)

Koen van Staveren97b28ca37589
diff --git a/.github/workflows/update-vrt.yml b/.github/workflows/update-vrt.yml
index 7fc6e8260a..6fa61d9a18 100644
--- a/.github/workflows/update-vrt.yml
+++ b/.github/workflows/update-vrt.yml
@@ -79,6 +79,8 @@ jobs:
with:
name: patch
- name: Apply patch and push
+ env:
+ BRANCH_NAME: ${{ steps.comment-branch.outputs.head_ref }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -89,7 +91,7 @@ jobs:
exit 0
fi
git commit -m "Update VRT"
- git push origin HEAD:${{ steps.comment-branch.outputs.head_ref }}
+ git push origin HEAD:${BRANCH_NAME}
- name: Add finished reaction
uses: dkershner6/reaction-action@v2
with:
diff --git a/upcoming-release-notes/4151.md b/upcoming-release-notes/4151.md
new file mode 100644
index 0000000000..e45d84e811
--- /dev/null
+++ b/upcoming-release-notes/4151.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [UnderKoen]
+---
+
+Remove code injection in /update-vrt workflow