2025-05-10 01:16:42 -04:00
|
|
|
name: "donotpassgo"
|
|
|
|
description: "general go code checks"
|
2025-05-17 15:47:24 +00:00
|
|
|
inputs:
|
|
|
|
test:
|
|
|
|
description: "runs unit tests with specified library"
|
|
|
|
required: false
|
|
|
|
default: "none"
|
2025-05-10 01:16:42 -04:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
2025-05-17 15:47:24 +00:00
|
|
|
- name: "run unit tests"
|
|
|
|
shell: bash
|
|
|
|
run: ${{ github.action_path }}/test.sh
|
|
|
|
env:
|
|
|
|
LIBRARY: ${{ inputs.test }}
|
|
|
|
|
|
|
|
- name: "install govulncheck"
|
2025-05-10 01:16:42 -04:00
|
|
|
run: |
|
|
|
|
go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|
|
|
|
|
- name: "dependency scan"
|
2025-05-10 01:29:37 -04:00
|
|
|
run: govulncheck ./...
|
|
|
|
|
|
|
|
- name: "static code analysis"
|
|
|
|
uses: securego/gosec@master
|
|
|
|
with:
|
|
|
|
args: ./...
|