Skip to content

Commit

Permalink
fix: gosec SAST scan ci job
Browse files Browse the repository at this point in the history
* fix: gosec SAST scan ci job
* feat: upload gosec report to github security page

Signed-off-by: lvlcn-t <[email protected]>
  • Loading branch information
lvlcn-t committed Nov 16, 2024
1 parent 5e95658 commit f26de9e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test_sast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ name: Test - SAST

on:
push:
schedule:
# Schedule the workflow to run at 00:00 on Sunday UTC time.
- cron: "0 0 * * 0"

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest

env:
GO111MODULE: on

GOFLAGS: "-buildvcs=false"
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
args: "-no-fail -fmt sarif -out results.sarif ./..."
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif

0 comments on commit f26de9e

Please sign in to comment.