From cfbe18bc590b6429d37e0b51df0815a9dff710e4 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Thu, 2 Nov 2023 00:47:52 -0500 Subject: [PATCH] ci: Update Workflows --- .github/workflows/semgrep.yml | 2 +- .github/workflows/snyk.yml | 6 ++++-- .github/workflows/test.yml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index fc7d2ee..36c687d 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -10,7 +10,7 @@ on: branches: - master schedule: - - cron: '30 0 1,15 * *' + - cron: "30 0 1,15 * *" permissions: contents: read diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 4b27ea3..de751b8 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -11,7 +11,7 @@ on: branches: - master schedule: - - cron: '30 0 1,15 * *' + - cron: "30 0 1,15 * *" permissions: contents: read @@ -42,6 +42,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha || github.ref }} - - uses: snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0 + - run: npm install -g snyk + + - run: snyk test env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa135b7..ce05bff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} env: