From 504d28bdb9ea5a727c8b919798a44d2cde673218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Sat, 17 Feb 2024 17:03:59 +0100 Subject: [PATCH] Update GitHub actions --- .github/workflows/code-scan-sarif.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/code-scan-sarif.yml b/.github/workflows/code-scan-sarif.yml index 1dfabda4c..e21aae4b0 100644 --- a/.github/workflows/code-scan-sarif.yml +++ b/.github/workflows/code-scan-sarif.yml @@ -14,7 +14,7 @@ # 2. Follow the annotated workflow below and make any necessary modifications then save the workflow to your repository # and review the "Security" tab once the action has run. -name: Credo +name: Code Scanning w/ SARIF output on: push: @@ -22,8 +22,6 @@ on: pull_request: # The branches below must be a subset of the branches above branches: [ "master" ] - schedule: - - cron: '33 2 * * 5' permissions: contents: read @@ -41,16 +39,12 @@ jobs: with: otp-version: 26.2 elixir-version: 1.16.1 - - name: get dependencies - run: mix deps.get - - name: compile dependencies - run: mix deps.compile - - name: compile - run: mix compile - - name: credo-scan - run: mix credo --format=sarif --mute-exit-status > credo_output.sarif - - name: upload sarif - uses: github/codeql-action/upload-sarif@v2 + - run: mix deps.get + - run: mix deps.compile + - run: mix compile + - run: mix credo --format=sarif --mute-exit-status > credo_output.sarif + - name: Upload SARIF + uses: github/codeql-action/upload-sarif@v3 with: # Path to SARIF file relative to the root of the repository sarif_file: credo_output.sarif