yq/scripts/secure.sh

11 lines
144 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
2021-07-18 07:05:12 +00:00
gosec "${PWD}" ./...
2021-03-03 08:44:23 +00:00
else
2021-07-18 07:05:12 +00:00
./bin/gosec "${PWD}" ./...
2021-03-03 08:44:23 +00:00
fi