Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Feb 17, 2024
1 parent df327c1 commit 504d28b
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/code-scan-sarif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@
# 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:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '33 2 * * 5'

permissions:
contents: read
Expand All @@ -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

0 comments on commit 504d28b

Please sign in to comment.