Skip to content

Commit 9195dbd

Browse files
committedJan 29, 2023
fix gosec installation
1 parent 2a32c9a commit 9195dbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎.github/workflows/build-x86-image.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ jobs:
5757
make ut
5858
5959
- name: Install gosec
60-
run: curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
60+
run: |
61+
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | \
62+
sed 's#giturl=.*#giturl="https://api.github.com/repos/${owner_repo}/releases/tags/${version}"#' | \
63+
sed 's#tag_name":"#tag_name": *"#' | \
64+
sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
6165
6266
- name: Build
6367
run: |

0 commit comments

Comments
 (0)
Please sign in to comment.