tools: align Bash snippets in GHA with `lint-sh` conventions · nodejs/node@363912a · GitHub
Skip to content

Commit 363912a

Browse files
committed
tools: align Bash snippets in GHA with lint-sh conventions
Our shell scripts enforce passing arbitrary values via quoted env variables to avoid injections. Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: #63829 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
1 parent 28e3629 commit 363912a

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/comment-labeled.yml

Lines changed: 5 additions & 3 deletions

.github/workflows/label-flaky-test-issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ jobs:
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
NUMBER: ${{ github.event.issue.number }}
52-
run: gh issue edit "$NUMBER" --repo ${{ github.repository }} --add-label "${{ steps.extract-labels.outputs.LABELS }}"
52+
LABELS: ${{ steps.extract-labels.outputs.LABELS }}
53+
run: gh issue edit "$NUMBER" --repo "$GITHUB_REPOSITORY" --add-label "$LABELS"

.github/workflows/linters.yml

Lines changed: 4 additions & 2 deletions

0 commit comments

Comments
 (0)