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
b90bbd84
Commit
b90bbd84
authored
Oct 18, 2021
by
Sam White
Committed by
Nick Gaskill
Oct 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Authenticated Container Scanning Example
parent
5ca5f2a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
doc/user/application_security/container_scanning/index.md
doc/user/application_security/container_scanning/index.md
+13
-3
No files found.
doc/user/application_security/container_scanning/index.md
View file @
b90bbd84
...
...
@@ -42,10 +42,20 @@ To enable container scanning in your pipeline, you need the following:
shared runners on GitLab.com, then this is already the case.
-
An image matching the
[
supported distributions
](
#supported-distributions
)
.
-
[
Build and push
](
../../packages/container_registry/index.md#build-and-push-by-using-gitlab-cicd
)
the Docker image to your project's container registry. If using a third-party container
registry, you might need to provide authentication credentials using the
`DOCKER_USER`
and
`DOCKER_PASSWORD`
[
configuration variables
](
#available-cicd-variables
)
.
the Docker image to your project's container registry.
-
The name of the Docker image to scan, in the
`DOCKER_IMAGE`
[
configuration variable
](
#available-cicd-variables
)
.
-
If you're using a third-party container registry, you might need to provide authentication
credentials through the
`DOCKER_USER`
and
`DOCKER_PASSWORD`
[
configuration variables
](
#available-cicd-variables
)
.
For example, if you are connecting to AWS ECR, you might use the following:
```
yaml
export AWS_ECR_PASSWORD=$(aws ecr get-login-password --region region)
include
:
-
template
:
Security/Container-Scanning.gitlab-ci.yml
DOCKER_USER
:
AWS
DOCKER_PASSWORD
:
"
$AWS_ECR_PASSWORD"
```
## Configuration
...
...
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