Skip to content

Commit f0e7f1a

Browse files
committed
merge ci.yaml
Signed-off-by: Kim Tsao <[email protected]>
1 parent b224f84 commit f0e7f1a

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ jobs:
2828
- name: Check if registry-library build is working
2929
run: cd registry-library && bash ./build.sh
3030

31+
- name: Run Gosec Security Scanner
32+
run: |
33+
export PATH=$PATH:$(go env GOPATH)/bin
34+
go install github.com/securego/gosec/v2/cmd/gosec@latest
35+
./run_gosec.sh
36+
if [[ $? != 0 ]]
37+
then
38+
echo "gosec scanner failed to run "
39+
exit 1
40+
fi
41+
42+
- name: Upload SARIF file
43+
uses: github/codeql-action/upload-sarif@v2
44+
with:
45+
# Path to SARIF file relative to the root of the repository
46+
sarif_file: gosec.sarif
47+
48+
3149
docker:
3250
name: Check docker builds
3351
runs-on: ubuntu-latest
@@ -63,21 +81,6 @@ jobs:
6381
- name: Upload coverage to Codecov
6482
uses: codecov/[email protected]
6583

66-
- name: Run Gosec Security Scanner
67-
run: |
68-
go install github.com/securego/gosec/v2/cmd/gosec@latest
69-
./run_gosec.sh
70-
if [[ $? != 0 ]]
71-
then
72-
echo "gosec scanner failed to run "
73-
exit 1
74-
fi
75-
76-
- name: Upload SARIF file
77-
uses: github/codeql-action/upload-sarif@v2
78-
with:
79-
# Path to SARIF file relative to the root of the repository
80-
sarif_file: gosec.sarif
8184

8285
test_minikube:
8386
name: Test Devfile Registry

0 commit comments

Comments
 (0)