Skip to content

Commit

Permalink
Merge pull request #1339 from cyberark/v1.7.0-fix
Browse files Browse the repository at this point in the history
Update GoSec to run only on branch builds
  • Loading branch information
Geri Jennings authored Sep 11, 2020
2 parents 40849f9 + 1e5ab06 commit b3c42e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ bench.*
debug
debug.*
dist
gosec.output
run
tmp
vendor
Expand Down
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ pipeline {
}

stage('Scan For Security with Gosec') {
// Gosec only works on branch builds
when {
not { tag "v*" }
}

steps {
sh "./bin/check_golang_security -s High -c Medium -b ${env.BRANCH_NAME}"
junit(allowEmptyResults: true, testResults: 'gosec.output')
Expand Down

0 comments on commit b3c42e3

Please sign in to comment.