feat: change the include and exclude to select and ignore (#177) #280
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gosec | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
merge_group: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
gosec: | |
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: | |
args: "-no-fail -fmt sarif -out results.sarif ./..." | |
- name: Upload Gosec Results | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: results.sarif |