mirror of
https://github.com/hegerdes/gitlab-actions.git
synced 2025-10-06 05:36:52 +02:00
c369dcec1baa2e30c3168ee6408712a8cd28feb6
Container Build Kaniko
Usage
Use this component to enable container scanning in your project.
You should add this component to an existing .gitlab-ci.yml
file by using the include:
keyword.
include:
- component: gitlab.com/hegerdes/container-build-kaniko/container-build@<VERSION>
where <VERSION>
is the latest released tag or main
.
This will add a container_scanning
job to the pipeline.
The template should work without modifications but you can customize the template settings.
Inputs
Input | Default value | Description |
---|---|---|
stage |
test |
The stage where you want the job to be added |
analyzer_image |
$CI_TEMPLATE_REGISTRY_HOST/security-products/container-scanning:5 |
The Docker image of the analyzer |
force_run |
false |
When set to true it always adds the job even if $CONTAINER_SCANNING_DISABLED is set |
Variables
Variable | Description |
---|---|
GIT_STRATEGY |
Default to fetch . |
DOCKER_AUTH_CONFIG |
GitLab variable containing registry secrets. |
For details, see the following links:
- https://docs.gitlab.com/ee/user/application_security/container_scanning/index.html#overriding-the-container-scanning-template
- https://docs.gitlab.com/ee/user/application_security/container_scanning/#vulnerability-allowlisting
- List of available variables: https://docs.gitlab.com/ee/user/application_security/container_scanning/#available-variables
Contribute
Please read about CI/CD components and best practices at: https://docs.gitlab.com/ee/ci/components
Description
Collection of GitLab CI-CD-Catalog actions. Allows users to build Docker/OCI Container Images.
Readme
BSD-2-Clause
176 KiB
Languages
Shell
88.8%
Smarty
7.7%
Python
3.2%
Dockerfile
0.3%