Skip to content

Commit 3194468

Browse files
authored
Create scan.yml
1 parent b1ddd36 commit 3194468

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/scan.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Security Scan"
2+
3+
# Run workflow each time code is pushed to your repository and on a schedule.
4+
# The scheduled workflow runs every at 00:00 on Sunday UTC time.
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * 0'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out code into the Go module directory
16+
uses: actions/checkout@v2
17+
- name: Security Scan
18+
uses: securego/gosec@master
19+
with:
20+
# we let the report trigger content trigger a failure using the GitHub Security features.
21+
args: '-no-fail -fmt sarif -out results.sarif ./...'
22+
- name: Upload SARIF file
23+
uses: github/codeql-action/upload-sarif@v1
24+
with:
25+
# Path to SARIF file relative to the root of the repository
26+
sarif_file: results.sarif

0 commit comments

Comments
 (0)