Skip to content

Commit 504d28b

Browse files
committed
Update GitHub actions
1 parent df327c1 commit 504d28b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/code-scan-sarif.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@
1414
# 2. Follow the annotated workflow below and make any necessary modifications then save the workflow to your repository
1515
# and review the "Security" tab once the action has run.
1616

17-
name: Credo
17+
name: Code Scanning w/ SARIF output
1818

1919
on:
2020
push:
2121
branches: [ "master" ]
2222
pull_request:
2323
# The branches below must be a subset of the branches above
2424
branches: [ "master" ]
25-
schedule:
26-
- cron: '33 2 * * 5'
2725

2826
permissions:
2927
contents: read
@@ -41,16 +39,12 @@ jobs:
4139
with:
4240
otp-version: 26.2
4341
elixir-version: 1.16.1
44-
- name: get dependencies
45-
run: mix deps.get
46-
- name: compile dependencies
47-
run: mix deps.compile
48-
- name: compile
49-
run: mix compile
50-
- name: credo-scan
51-
run: mix credo --format=sarif --mute-exit-status > credo_output.sarif
52-
- name: upload sarif
53-
uses: github/codeql-action/upload-sarif@v2
42+
- run: mix deps.get
43+
- run: mix deps.compile
44+
- run: mix compile
45+
- run: mix credo --format=sarif --mute-exit-status > credo_output.sarif
46+
- name: Upload SARIF
47+
uses: github/codeql-action/upload-sarif@v3
5448
with:
5549
# Path to SARIF file relative to the root of the repository
5650
sarif_file: credo_output.sarif

0 commit comments

Comments
 (0)