Skip to content

Commit

Permalink
fix gosec ci installation (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Feb 6, 2023
1 parent 35b22bb commit f4efd0b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ jobs:
- name: Install gosec
run: |
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | \
sed 's#giturl=.*#giturl="https://api.github.com/repos/${owner_repo}/releases/tags/${version}"#' | \
sed 's#tag_name":"#tag_name": *"#' | \
sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
- name: Build
run: |
Expand Down

0 comments on commit f4efd0b

Please sign in to comment.