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
4836e251
Commit
4836e251
authored
Apr 08, 2021
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the documentation
parent
2978ad3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
doc/user/application_security/index.md
doc/user/application_security/index.md
+40
-0
No files found.
doc/user/application_security/index.md
View file @
4836e251
...
...
@@ -412,6 +412,46 @@ You can do it quickly by following the hyperlink given to run a new pipeline.
![
Run a new pipeline
](
img/outdated_report_pipeline_v12_9.png
)
## Security report validation
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/321918) in GitLab 13.11.
As of GitLab 13.11, we've introduced the
**optional**
validation of the security report artifacts based on the
[
report schemas
](
https://gitlab.com/gitlab-org/security-products/security-report-schemas/-/tree/master/dist
)
.
If you enable validation, GitLab validates the report artifacts before ingesting the vulnerabilities.
This prevents ingesting broken vulnerability data into the database.
### Enable security report validation
To enable report artifacts validation, set the
`VALIDATE_SCHEMA`
environment variable to
`"true"`
for the jobs in the
`.gitlab-ci.yml`
file.
For example, the configuration below enables validation for only the
`sast`
job:
```
yaml
include
:
-
template
:
Security/Dependency-Scanning.gitlab-ci.yml
-
template
:
Security/License-Scanning.gitlab-ci.yml
-
template
:
Security/SAST.gitlab-ci.yml
-
template
:
Security/Secret-Detection.gitlab-ci.yml
stages
:
-
security-scan
dependency_scanning
:
stage
:
security-scan
license_scanning
:
stage
:
security-scan
sast
:
stage
:
security-scan
variables
:
VALIDATE_SCHEMA
:
"
true"
.secret-analyzer
:
stage
:
security-scan
```
## Troubleshooting
### Getting error message `sast job: stage parameter should be [some stage name here]`
...
...
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