From c4423ee5baae4bb40767ec88fe75001067be6d25 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Tue, 14 Nov 2023 01:38:51 -0500 Subject: [PATCH] Update snyk.yml --- .github/workflows/snyk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 42b5a70d..d0984118 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -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 }} @@ -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 }}