Skip to content

Commit 8f1461d

Browse files
authored
fix(security): harden GitHub Actions workflows against expression injection (#54)
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent 246cedc commit 8f1461d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ jobs:
2121
id: create-pr
2222
env:
2323
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
ACTOR: ${{ github.actor }}
2425
run: |
2526
TAG="${GITHUB_REF##*/}"
2627
TITLE="Release ${TAG}"
2728
BODY="Automated PR. Will trigger the ${TAG} release when approved."
2829
LABEL=release
29-
ASSIGNEE=${{ github.actor }}
30+
ASSIGNEE="${ACTOR}"
3031
gh pr create --title "${TITLE}" --body "${BODY}" --label "${LABEL}" --assignee "${ASSIGNEE}" ||
3132
gh pr edit --title "${TITLE}" --body "${BODY}" --add-label "${LABEL}"

0 commit comments

Comments
 (0)