Skip to content

Commit

Permalink
fix gosec installation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jan 29, 2023
1 parent 5ed45f3 commit 4f957c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ jobs:
make ut
- name: Install gosec
run: curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
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 }}'
- name: Build
run: |
Expand Down

0 comments on commit 4f957c6

Please sign in to comment.