Skip to content

Commit

Permalink
Update snyk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Nov 14, 2023
1 parent 67d5197 commit c4423ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- run: npm install snyk -g

- if: github.ref == 'refs/heads/main'
run: snyk monitor --file=composer.lock --org=$SNYK_ORGANIZATION --project-name=$SNYK_PROJECT --project-tags=$SNYK_TAGS --remote-repo-url=$SNYK_REMOTE_REPO --target-reference=main
run: snyk monitor --file=composer.lock --org=$SNYK_ORGANIZATION --project-name=$SNYK_PROJECT --project-tags=$SNYK_TAGS --remote-repo-url=$SNYK_REMOTE_REPO --target-reference="$(git branch --show-current)"
env:
SNYK_TOKEN: ${{ secrets.DX_SDKS_SNYK_TOKEN }}
SNYK_ORGANIZATION: ${{ env.DX_SDKS_SNYK_ORGANIZATION }}
Expand All @@ -79,7 +79,7 @@ jobs:
SNYK_REMOTE_REPO: ${{ env.DX_SDKS_SNYK_REMOTE_REPO_URL }}
continue-on-error: true

- run: snyk test --file=composer.lock --org=$SNYK_ORGANIZATION --project-name=$SNYK_PROJECT --project-tags=$SNYK_TAGS --remote-repo-url=$SNYK_REMOTE_REPO --target-reference=${{ github.event.pull_request.number || github.ref }}
- run: snyk test --file=composer.lock --org=$SNYK_ORGANIZATION --project-name=$SNYK_PROJECT --remote-repo-url=$SNYK_REMOTE_REPO
env:
SNYK_TOKEN: ${{ secrets.DX_SDKS_SNYK_TOKEN }}
SNYK_ORGANIZATION: ${{ env.DX_SDKS_SNYK_ORGANIZATION }}
Expand Down

0 comments on commit c4423ee

Please sign in to comment.