Skip to content

Commit

Permalink
Mitigate injection (#115)
Browse files Browse the repository at this point in the history
Replace interpolated context variables with default variables used more defensively. This mitigates an attacker naming a branch a command that could run in our runner's context.
  • Loading branch information
jackdawm committed Aug 3, 2023
1 parent d0579cc commit 836addc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Print build information
run: "echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}"
run: 'echo head_ref: "$GITHUB_HEAD_REF", ref: "$GITHUB_REF"'
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
Expand Down

0 comments on commit 836addc

Please sign in to comment.