Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9ab3ef30
Commit
9ab3ef30
authored
3 years ago
by
Thiago Figueiró
Committed by
Nick Gaskill
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Container scanning example for dependency list report
parent
db259d5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
doc/user/application_security/container_scanning/index.md
doc/user/application_security/container_scanning/index.md
+22
-1
No files found.
doc/user/application_security/container_scanning/index.md
View file @
9ab3ef30
...
...
@@ -71,7 +71,9 @@ The included template:
GitLab saves the results as a
[
Container Scanning report artifact
](
../../../ci/yaml/artifacts_reports.md#artifactsreportscontainer_scanning
)
that you can download and analyze later. When downloading, you always receive the most-recent
artifact.
artifact. If
[
dependency scan is enabled
](
#enable-dependency-scan
)
,
a
[
Dependency Scanning report artifact
](
../../../ci/yaml/artifacts_reports.md#artifactsreportsdependency_scanning
)
is also created.
The following is a sample
`.gitlab-ci.yml`
that builds your Docker image, pushes it to the container
registry, and scans the image:
...
...
@@ -146,6 +148,25 @@ include:
DOCKER_PASSWORD
:
"
$AWS_ECR_PASSWORD"
```
#### Enable dependency scan
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/345434) in GitLab 14.6.
The
`CS_DISABLE_DEPENDENCY_SCAN`
CI/CD variable controls whether the scan creates a
[
Dependency List
](
../dependency_list/
)
report. For the scan to create this report, you must set this variable to
`false`
(the default value
is
`true`
).
For example:
```
yaml
include
:
-
template
:
Security/Container-Scanning.gitlab-ci.yml
container_scanning
:
variables
:
CS_DISABLE_DEPENDENCY_SCAN
:
"
false"
```
#### Available CI/CD variables
You can
[
configure
](
#customizing-the-container-scanning-settings
)
analyzers by using the following CI/CD variables:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment