Skip to content

Commit 654dd30

Browse files
authored
fix(security): harden GitHub Actions workflows against expression injection (#56)
Move `${{ }}` expressions from `run:` blocks into step-level `env:` blocks, then reference them as properly-quoted shell variables. Part of cloudnative-pg/cloudnative-pg#10113 Assisted-by: Claude Opus 4.6 Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent 4deedf6 commit 654dd30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
token: '${{ secrets.REPO_PAT }}'
2727
- name: Import docs
2828
run: |
29-
echo "Importing CloudNativePG docs for version: ${{ env.VERSION }}"
30-
./scripts/import_docs.sh "${{ env.VERSION }}"
29+
echo "Importing CloudNativePG docs for version: ${VERSION}"
30+
./scripts/import_docs.sh "${VERSION}"
3131
- name: Commit and push changes
3232
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9
3333
with:

0 commit comments

Comments
 (0)