Skip to content

Commit 07b49db

Browse files
committed
fix: Escape 'inputs.value' prior to writing
1 parent e0e655c commit 07b49db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/gh-cache/cache/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ runs:
3232
- if: ${{ inputs.value }}
3333
name: Update cached value
3434
shell: bash
35-
run: echo "${{ inputs.value }}" > ${{ inputs.key }}
35+
run: |
36+
mkdir -p "$(dirname "${{ inputs.key }}")"
37+
printf "%s" "${{ inputs.value }}" > "${{ inputs.key }}"
3638
- name: Save cached value
3739
uses: github/continuous-accessibility-scanner/.github/actions/gh-cache/save@smockle/cache-findings
3840
with:

0 commit comments

Comments
 (0)