Skip to content

Commit 95eb661

Browse files
[FSSDK-10230] fix: GitHub slug head_ref vulnerability resolved (#481)
* Update android.yml
1 parent fb4a952 commit 95eb661

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/android.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ jobs:
4040
ref: 'master'
4141

4242
- name: set SDK Branch if PR
43+
env:
44+
HEAD_REF: ${{ github.head_ref }}
4345
if: ${{ github.event_name == 'pull_request' }}
4446
run: |
45-
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
46-
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
47+
echo "SDK_BRANCH=${{ env.HEAD_REF }}" >> $GITHUB_ENV
48+
echo "TRAVIS_BRANCH=${{ env.HEAD_REF }}" >> $GITHUB_ENV
4749
- name: set SDK Branch if not pull request
4850
if: ${{ github.event_name != 'pull_request' }}
4951
run: |

0 commit comments

Comments
 (0)