yq/scripts/secure.sh

11 lines
140 B
Bash
Raw Normal View History

2021-03-03 08:44:23 +00:00
#!/bin/bash
set -o errexit
set -o pipefail
if command -v gosec &> /dev/null
then
gosec ${PWD} ./...
2021-03-03 08:44:23 +00:00
else
./bin/gosec ${PWD} ./...
2021-03-03 08:44:23 +00:00
fi