We provide you with a pipeline script that you can use in the repository. You can also use the Qualys template for IaC scans that are added in GitLab.
To use the template:
The Apply a template drop-down is available when you select the template type.
Select the Qualys-IaC-Security from the Apply a template drop-down.
Once you select the template, the file's contents are automatically loaded.
Alternatively, you can also create the .gitlab-ci.yml file in the root directory of your repository with the content provided.
Contents of Pipeline Script (.gitlab-ci.yml)
stages:
- build
- test
- qualys_iac_scan
- deploy
qualys_iac_sast:
stage: qualys_iac_scan
image:
name: qualys/qiac_security_cli:latest
entrypoint: [""]
script:
- sh /home/qiac/gitlab.sh
artifacts:
name: "qualys-iac-sast-artifacts"
paths:
- qualys_iac_ci_result.json
reports:
sast: gl-sast-qualys-iac-ci-report.json
Next step: