Skip to content

Commit

Permalink
[FSSDK-10665] fix: Github Actions YAML files vulnerable to script inj…
Browse files Browse the repository at this point in the history
…ections corrected (#438)
  • Loading branch information
FarhanAnjum-opti authored Sep 25, 2024
1 parent 986e615 commit 40880ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ jobs:
path: 'home/runner/travisci-tools'
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 "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
- name: set SDK Branch if not pull request
env:
REF_NAME: ${{ github.ref_name }}
if: ${{ github.event_name != 'pull_request' }}
run: |
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
echo "SDK_BRANCH=${REF_NAME}" >> $GITHUB_ENV
echo "TRAVIS_BRANCH=${REF_NAME}" >> $GITHUB_ENV
- name: Trigger build
env:
SDK: python
Expand Down

0 comments on commit 40880ff

Please sign in to comment.