Skip to content

Commit b3c42e3

Browse files
author
Geri Jennings
authored
Merge pull request #1339 from cyberark/v1.7.0-fix
Update GoSec to run only on branch builds
2 parents 40849f9 + 1e5ab06 commit b3c42e3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ bench.*
1010
debug
1111
debug.*
1212
dist
13+
gosec.output
1314
run
1415
tmp
1516
vendor

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ pipeline {
7878
}
7979

8080
stage('Scan For Security with Gosec') {
81+
// Gosec only works on branch builds
82+
when {
83+
not { tag "v*" }
84+
}
85+
8186
steps {
8287
sh "./bin/check_golang_security -s High -c Medium -b ${env.BRANCH_NAME}"
8388
junit(allowEmptyResults: true, testResults: 'gosec.output')

0 commit comments

Comments
 (0)