From 3ab45104b38fa777bbafad5b67047a812ebbdd4f Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Tue, 7 Nov 2023 17:22:42 -0600 Subject: [PATCH] Update snyk.yml --- .github/workflows/snyk.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 10bf119..b223a16 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -42,13 +42,19 @@ jobs: # with: # ref: ${{ github.event.pull_request.merge_commit_sha || github.ref }} # TODO Change this back - # - uses: ./.github/actions/build + # - name: Install .NET Core + # uses: actions/setup-dotnet@v3 # with: - # solution-path: Sample\Auth0MauiApp.sln + # dotnet-version: "7.0.402" + + # - run: | + # dotnet restore + # dotnet build # Install Scoop, Snyk's Scoop bucket, and the Snyk CLI. - shell: pwsh run: | + Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser iwr get.scoop.sh -outfile 'install.ps1' .\install.ps1 -RunAsAdmin scoop --version @@ -58,12 +64,12 @@ jobs: # Check that project is registered with Snyk when triggered from main branch - if: github.ref == 'refs/heads/main' continue-on-error: true - run: snyk monitor + run: ~\scoop\apps\snyk\current\snyk monitor env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} # Report vulnerabilities - - run: snyk test + - run: ~\scoop\apps\snyk\current\snyk test working-directory: Sample env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}