Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix ref injection in translate-strings workflow

shamoon84715071153d
diff --git a/.github/workflows/translate-strings.yml b/.github/workflows/translate-strings.yml
index bd9eafae5..2d36d67ca 100644
--- a/.github/workflows/translate-strings.yml
+++ b/.github/workflows/translate-strings.yml
@@ -12,9 +12,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v6
+ env:
+ GH_REF: ${{ github.ref }} # sonar rule:githubactions:S7630 - avoid injection
with:
token: ${{ secrets.PNGX_BOT_PAT }}
- ref: ${{ github.head_ref }}
+ ref: $GH_REF
- name: Set up Python
id: setup-python
uses: actions/setup-python@v6