Skip to content

Commit

Permalink
[FSSDK-10230] fix: GitHub slug head_ref vulnerability resolved (#481)
Browse files Browse the repository at this point in the history
* Update android.yml
  • Loading branch information
muzahidul-opti authored May 17, 2024
1 parent fb4a952 commit 95eb661
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ jobs:
ref: 'master'

- name: set SDK Branch if PR
env:
HEAD_REF: ${{ github.head_ref }}
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "SDK_BRANCH=${{ env.HEAD_REF }}" >> $GITHUB_ENV
echo "TRAVIS_BRANCH=${{ env.HEAD_REF }}" >> $GITHUB_ENV
- name: set SDK Branch if not pull request
if: ${{ github.event_name != 'pull_request' }}
run: |
Expand Down

0 comments on commit 95eb661

Please sign in to comment.