Skip to content

Commit a453ad5

Browse files
committed
fix: github workflow vulnerable to script injection
Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
1 parent 38520c8 commit a453ad5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
TRAVIS_COM_TOKEN:
99
required: true
1010

11+
env:
12+
HEAD_REF: ${{ github.head_ref }}
13+
1114
jobs:
1215
integration_tests:
1316
runs-on: ubuntu-latest
@@ -22,7 +25,7 @@ jobs:
2225
- name: set SDK Branch if PR
2326
if: ${{ github.event_name == 'pull_request' }}
2427
run: |
25-
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
28+
echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
2629
- name: set SDK Branch if not pull request
2730
if: ${{ github.event_name != 'pull_request' }}
2831
run: |

0 commit comments

Comments
 (0)