simplify interfaces and move to types #32
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: Brahma GO-SAFE CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
paths-ignore: [ README.md, .github/workflows/*.yml ] | |
branches: | |
- '*' | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
name: Continuous Integration | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Golang caches | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Build | |
id: Build | |
run: make build | |
- name: Lint | |
id: Lint | |
uses: golangci/golangci-lint-action@v6.1.0 | |
- name: Test | |
id: Test | |
run: make test | |
- 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 -exclude-dir=test -exclude-dir=bin -severity=medium ./...' | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: results.sarif |