Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
UNL ITS
docker-ci
Commits
055ed1d6
Commit
055ed1d6
authored
5 years ago
by
Raul Barreras
Browse files
Options
Downloads
Patches
Plain Diff
Update examples/dependency-check.md
parent
e2e95ca0
No related branches found
No related tags found
1 merge request
!33
Resolve "Integrate dependency-check container with Sonarqube"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/dependency-check.md
+14
-5
14 additions, 5 deletions
examples/dependency-check.md
with
14 additions
and
5 deletions
examples/dependency-check.md
+
14
−
5
View file @
055ed1d6
...
@@ -12,24 +12,33 @@
...
@@ -12,24 +12,33 @@
-
One 'analysis' stage with one job
-
One 'analysis' stage with one job
-
Allows the job to fail without impacting the rest of the CI (allow_failure: true)
-
Allows the job to fail without impacting the rest of the CI (allow_failure: true)
-
Export the results as an artifact
```
yml
```
yml
stages
:
stages
:
-
analysis
-
analysis
variables
:
dependency_check
:
stage
:
analysis
stage
:
analysis
image
:
name
:
its-registry.unl.edu/unl-its/docker-ci/dependency-check
variables
:
DEPENDENCY_CHECK_OUT_DIR
:
./dependency_check_results/
tags
:
tags
:
-
docker
-
docker
script
:
script
:
-
docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/detect-secrets -s -e
4.5
-
dependency-check --format ALL -s ./ --out ${DEPENDENCY_CHECK_OUT_DIR} --project ${CI_PROJECT_NAMESPACE}
-
docker run --rm -v "${PWD}:/work" -w /work its-registry.unl.edu/unl-its/docker-ci/dependency-check
artifacts
:
paths
:
-
./dependency_check_results/dependency-check-report.html
-
./dependency_check_results/dependency_check_results/dependency-check-report.xml
expire_in
:
1 day
allow_failure
:
true
allow_failure
:
true
```
```
## Scan the current directory (must be a git repo)
## Scan the current directory (must be a git repo)
```
bash
```
bash
docker run
-it
--rm
-v
"
${
PWD
}
:/work"
-w
/work
-e
CI_PROJECT_NAMESPACE
=
`
basename
$(
git rev-parse
--show-toplevel
)
`
its-registry.unl.edu/unl-its/docker-ci/dependency-check
CI_PROJECT_NAMESPACE
=
`
basename
$(
git rev-parse
--show-toplevel
)
`
docker run
-it
--rm
-v
"
${
PWD
}
:/work"
-w
/work
-e
CI_PROJECT_NAMESPACE
=
${
CI_PROJECT_NAMESPACE
}
its-registry.unl.edu/unl-its/docker-ci/dependency-check dependency-check
--format
ALL
-s
./
--out
./dependency_check_results
--project
${
CI_PROJECT_NAMESPACE
}
```
```
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