Skip to content

Commit 4bc5f04

Browse files
committed
refactor(action): Use environment variables for the input
It prevents malformed injections since GitHub replace the text.
1 parent c661517 commit 4bc5f04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ runs:
2525
cd "${GITHUB_WORKSPACE}" || exit 1
2626
TEMP_PATH="$(mktemp -d)"
2727
PATH="${TEMP_PATH}:$PATH"
28-
curl -sfL "https://raw.githubusercontent.com/Songmu/tagpr/${ACTION_REF}/install.sh" | sh -s -- -b "$TEMP_PATH" "${{ inputs.version }}" 2>&1
28+
curl -sfL "https://raw.githubusercontent.com/Songmu/tagpr/${ACTION_REF}/install.sh" | sh -s -- -b "$TEMP_PATH" "$TAGPR_VERSION" 2>&1
2929
tagpr
3030
shell: bash
3131
env:
3232
ACTION_REF: ${{ github.action_ref }}
33+
TAGPR_VERSION: ${{ inputs.version }}
3334
TAGPR_CONFIG_FILE: ${{ inputs.config }}
3435
branding:
3536
icon: 'git-pull-request'

0 commit comments

Comments
 (0)