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 (#425)
  • Loading branch information
FarhanAnjum-opti authored Sep 24, 2024
1 parent 80395e9 commit 071d437
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
env:
HEAD_REF: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -20,11 +22,11 @@ jobs:
- name: set SDK Branch if PR
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
if: ${{ github.event_name != 'pull_request' }}
run: |
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
- name: Trigger build
env:
SDK: agent
Expand Down

0 comments on commit 071d437

Please sign in to comment.