Skip to content

Commit c81663e

Browse files
Copilotpelikhan
andauthored
[WIP] Fix template injection error in sync-actions.yml (#9)
* Initial plan * fix: prevent template injection by passing inputs.ref via env var in sync-actions.yml Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 976da90 commit c81663e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sync-actions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
echo "::group::Resolving Ref"
8787
8888
# Determine raw ref from event inputs
89-
RAW_REF="${{ inputs.ref }}"
89+
RAW_REF="${INPUT_REF}"
9090
9191
# Default to 'latest' if empty
9292
if [[ -z "$RAW_REF" ]]; then
@@ -187,6 +187,7 @@ jobs:
187187
echo "::endgroup::"
188188
env:
189189
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190+
INPUT_REF: ${{ inputs.ref }}
190191

191192
- name: Checkout gh-aw-actions (this repository)
192193
uses: actions/checkout@v4

0 commit comments

Comments
 (0)