Skip to content

Commit e861b5d

Browse files
committed
chore: update scan ci
1 parent 7eda75c commit e861b5d

File tree

2 files changed

+34
-39
lines changed

2 files changed

+34
-39
lines changed

.github/workflows/codeql.yml

-39
This file was deleted.

.github/workflows/scan.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- '*.go'
12+
pull_request:
13+
branches:
14+
- main
15+
schedule:
16+
- cron: '0 0 * * 0'
17+
18+
jobs:
19+
scan:
20+
permissions: write-all
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Check out code into the Go module directory
24+
uses: actions/checkout@v2
25+
- name: Security Scan
26+
uses: securego/gosec@master
27+
with:
28+
# we let the report trigger content trigger a failure using the GitHub Security features.
29+
args: '-no-fail -fmt sarif -out results.sarif ./...'
30+
- name: Upload SARIF file
31+
uses: github/codeql-action/upload-sarif@v2
32+
with:
33+
# Path to SARIF file relative to the root of the repository
34+
sarif_file: results.sarif

0 commit comments

Comments
 (0)