Skip to content

Commit

Permalink
Update and rename main.yml to gosec.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akindemirsec authored Mar 29, 2024
1 parent 9949d2e commit bce4603
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: GoSecTest

on:
push:
branches:
- main

jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
# we let the report trigger content trigger a failure using the GitHub Security features.
args: '-no-fail -fmt sarif -out results.sarif ./...'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif
18 changes: 0 additions & 18 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit bce4603

Please sign in to comment.