Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Prince
PrivateStorageio
Commits
658789f0
Commit
658789f0
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Hack our logic into the script instead
parent
b9bbd7c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-5
0 additions, 5 deletions
.gitlab-ci.yml
ci-tools/vulnerability-scan
+14
-0
14 additions, 0 deletions
ci-tools/vulnerability-scan
with
14 additions
and
5 deletions
.gitlab-ci.yml
+
0
−
5
View file @
658789f0
...
...
@@ -10,11 +10,6 @@ unit-tests:
vulnerability-scan
:
stage
:
"
test"
# It would be nice to target this a bit more specifically. If we upgrade to
# a newer GitLab (13.11?) then we can select exit codes that are allowed.
# For now we're stuck with true/false though.
# https://whetstone.privatestorage.io/help/ci/yaml/README.md#allow_failure
allow_failure
:
true
script
:
-
"
ci-tools/vulnerability-scan
security-report.txt"
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
ci-tools/vulnerability-scan
+
14
−
0
View file @
658789f0
...
...
@@ -37,4 +37,18 @@ fi
# config. vulnix exit status indicates what vulnix thinks happened. If we
# upgrade to a newer GitLab then we can make GitLab pipeline behavior vary
# based on this.
#
# For now, allow 0 (no errors), 1 (only whitelisted errors), and 2
# (non-whitelisted errors). 3 indicates unexpected error so we let that
# propagate.
set
+e
nix-shell
-p
vulnix
--run
'vulnix ./scan-target/'
|
tee
"
$OUTPUT
"
vulnix_status
=
$?
set
-e
echo
"vulnix status:
$vulnix_status
"
if
[
$vulnix_status
-eq
3
]
;
then
exit
$vulnix_status
else
exit
0
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment