Skip to content

Commit 6a21959

Browse files
[FSSDK-10665] fix: Github Actions YAML files vulnerable to script injections corrected (#392)
1 parent e152edb commit 6a21959

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/integration_test.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ jobs:
2424
ref: 'master'
2525
- name: set SDK Branch if PR
2626
if: ${{ github.event_name == 'pull_request' }}
27+
env:
28+
HEAD_REF: ${{ github.head_ref }}
29+
BASE_REF: ${{ github.base_ref }}
2730
run: |
28-
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
29-
echo "TRAVIS_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
30-
## Need to remove
31-
echo ${{ github.ref_name }}
31+
echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
32+
echo "TRAVIS_BRANCH=$BASE_REF" >> $GITHUB_ENV
3233
- name: set SDK Branch if not pull request
3334
if: ${{ github.event_name != 'pull_request' }}
35+
env:
36+
REF_NAME: ${{ github.ref_name }}
3437
run: |
35-
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
36-
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
37-
## Need to remove
38-
echo ${{ github.ref_name }}
38+
echo "SDK_BRANCH=$REF_NAME" >> $GITHUB_ENV
39+
echo "TRAVIS_BRANCH=$REF_NAME" >> $GITHUB_ENV
3940
- name: Trigger build
4041
env:
4142
SDK: go

0 commit comments

Comments
 (0)