diff --git a/.github/workflows/period-check.yml b/.github/workflows/period-check.yml index bd5242d..1d9ca5a 100644 --- a/.github/workflows/period-check.yml +++ b/.github/workflows/period-check.yml @@ -18,7 +18,8 @@ jobs: fetch-depth: 0 - name: Run gosec security scan run: | - curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s latest + curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.21.2 + export PATH=$PATH:$(pwd)/bin gosec -severity high -confidence high ./... || exit 1 - name: e2e test env: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 03feae7..8f731f7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,7 +22,8 @@ jobs: fetch-depth: 0 - name: Run gosec security scan run: | - curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s latest + curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s v2.21.2 + export PATH=$PATH:$(pwd)/bin gosec -severity high -confidence high ./... || exit 1 - name: pr test env: