Skip to content

Commit 72b071d

Browse files
committed
Use govulncheck instead of nancy
1 parent fd27797 commit 72b071d

File tree

3 files changed

+6
-51
lines changed

3 files changed

+6
-51
lines changed

Jenkinsfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,10 @@ pipeline {
6868
}
6969
}
7070
}
71-
stage('Frontend') {
71+
stage('Build') {
7272
steps {
7373
sh './scripts/ci/build-frontend'
74-
}
75-
}
76-
stage('Backend') {
77-
steps {
78-
withCredentials([usernamePassword(credentialsId: 'oss-index-token', passwordVariable: 'NANCY_TOKEN', usernameVariable: 'NANCY_USER')]) {
79-
sh './scripts/ci/test-backend'
80-
}
81-
// Build all the golang binaries
74+
sh './scripts/ci/test-backend'
8275
sh './scripts/ci/build-backend'
8376
// Build the docker image used for testing below
8477
sh '''docker build --pull --no-cache \\

backend/.nancy-ignore

Lines changed: 0 additions & 37 deletions
This file was deleted.

scripts/ci/test-backend

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ echo " NOW: $NOW"
3131

3232
if [ "${1:-}" = "--inside-docker" ]; then
3333
mkdir -p /workspace
34-
echo -e "${BLUE}${CYAN}Nancy setup${RESET}"
34+
echo -e "${BLUE}${CYAN}govulncheck setup${RESET}"
3535
cd /workspace
36-
# go get github.com/sonatype-nexus-community/nancy
37-
cp /app/backend/go.mod /app/backend/go.sum /app/backend/.nancy-ignore .
36+
cp /app/backend/go.mod /app/backend/go.sum .
3837
go mod download
3938

40-
echo -e "${BLUE}${CYAN}Nancy testing${RESET}"
41-
go list -json -m all | nancy sleuth --quiet --username "${NANCY_USER}" --token "${NANCY_TOKEN:-}"
39+
echo -e "${BLUE}${CYAN}govulncheck testing${RESET}"
40+
govulncheck ./...
4241
rm -rf /workspace
4342

4443
echo -e "${BLUE}${CYAN}Testing backend code${RESET}"

0 commit comments

Comments
 (0)