File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 94
94
- name : Checkout code
95
95
uses : actions/checkout@v4
96
96
97
- - name : gosec
97
+ - name : Run Gosec
98
98
uses : dell/common-github-actions/gosec-runner@main
99
99
with :
100
100
excludes : ${{ env.GOSEC_EXCLUDES }}
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ LABEL "com.github.actions.color"="gray-dark"
7
7
8
8
LABEL version="1.0.0"
9
9
10
+ RUN go install github.com/securego/gosec/v2/cmd/gosec@latest
11
+
10
12
ENV GOFLAGS="-buildvcs=false"
11
13
COPY entrypoint.sh /entrypoint.sh
12
14
RUN chmod +x /entrypoint.sh
Original file line number Diff line number Diff line change @@ -39,11 +39,6 @@ get_exclude_directories() {
39
39
EXCLUDE_DIR_FLAG=" $exclude_arg "
40
40
}
41
41
42
- # Fetch the latest version of gosec
43
- LATEST_VERSION=$( curl -s https://api.github.com/repos/securego/gosec/releases/latest | grep ' "tag_name":' | sed -E ' s/.*"([^"]+)".*/\1/' )
44
-
45
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $( go env GOPATH) /bin $LATEST_VERSION
46
-
47
42
submodules=$( find . -name ' go.mod' -exec dirname {} +)
48
43
for submodule in $submodules ; do
49
44
echo " Running gosec on $submodule "
You can’t perform that action at this time.
0 commit comments