laconicd-deprecated/.gitea/workflows/security.yml
Thomas E Lackey 4bf225726e
Some checks failed
Lint / Run golangci-lint (pull_request) Has been cancelled
Lint / Run flake8 on python integration tests (pull_request) Has been cancelled
Tests / cleanup-runs (pull_request) Failing after 8s
Run Gosec / Gosec (pull_request) Failing after 12s
Tests / sdk_tests (pull_request) Has been cancelled
Tests / test-unit-cover (pull_request) Has been cancelled
Tests / test-rpc (pull_request) Has been cancelled
Tests / test-importer (pull_request) Has been cancelled
More tweaks
2024-01-22 17:09:42 -06:00

31 lines
804 B
YAML

name: Run Gosec
on:
pull_request:
push:
branches:
- main
jobs:
Gosec:
permissions:
security-events: write
runs-on: ubuntu-latest
env:
GO111MODULE: on
# To amke upload-sarif happy
GITHUB_RUN_ATTEMPT: 1
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: cosmos/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 -exclude=G701,G703 ./...'
- 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