Skip to content

Commit

Permalink
Fix untrusted input
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed May 1, 2023
1 parent ef489fe commit 0706a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ jobs:
if: env.HAS_SECRETS == 'HAS_SECRETS'

- id: branch
run: echo "branch=${{ github.head_ref || github.ref_name }}" >> $GITHUB_OUTPUT
run: echo "branch=${GITHUB_REF}" >> $GITHUB_OUTPUT
if: env.HAS_SECRETS == 'HAS_SECRETS'
env:
GITHUB_REF: ${{ github.head_ref || github.ref_name }}

- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 0706a9b

Please sign in to comment.