From 714462c36f1fba54d11623eed6f03f9901542f94 Mon Sep 17 00:00:00 2001 From: Tessa Nordgren Date: Fri, 18 Feb 2022 12:07:31 -0800 Subject: [PATCH] added in static code analysis tools --- .drone.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 65b7f3a..ce00629 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,9 +3,18 @@ kind: pipeline name: default steps: +- name: gosec security analysis + image: securego/gosec + commands: + - gosec ./... +- name: staticcheck analysis + image: golang + commands: + - go install honnef.co/go/tools/cmd/staticcheck + - "$(go env GOPATH)/bin/staticcheck" - name: build, test and benchmark image: golang commands: + - go build -race - go test - go test -bench=. - - go build