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
f864aab5
Commit
f864aab5
authored
Nov 22, 2021
by
Russell Dickenson
Committed by
Fiona Neill
Nov 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix infinite loop in SAST configuration documentation
parent
f4da99f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
22 deletions
+16
-22
doc/user/application_security/sast/analyzers.md
doc/user/application_security/sast/analyzers.md
+1
-1
doc/user/application_security/sast/index.md
doc/user/application_security/sast/index.md
+15
-21
No files found.
doc/user/application_security/sast/analyzers.md
View file @
f864aab5
...
...
@@ -59,7 +59,7 @@ support the following features:
## Official default analyzers
Any custom change to the official analyzers can be achieved by using a
[
CI/CD variable in your `.gitlab-ci.yml`
](
index.md#
customizing-the-sast-setting
s
)
.
[
CI/CD variable in your `.gitlab-ci.yml`
](
index.md#
available-cicd-variable
s
)
.
### Using a custom Docker mirror
...
...
doc/user/application_security/sast/index.md
View file @
f864aab5
...
...
@@ -144,7 +144,7 @@ as shown in the following table:
| Capability | In Free | In Ultimate |
|:---------------------------------------------------------------------------------------|:--------------------|:-------------------|
|
[
Configure SAST Scanners
](
#configuration
)
|
**{check-circle}**
|
**{check-circle}**
|
|
[
Customize SAST Settings
](
#
customizing-the-sast-settings
)
|
**{check-circle}**
|
**{check-circle}**
|
|
[
Customize SAST Settings
](
#
available-cicd-variables
)
|
**{check-circle}**
|
**{check-circle}**
|
| View
[
JSON Report
](
#reports-json-format
)
|
**{check-circle}**
|
**{check-circle}**
|
| Presentation of JSON Report in Merge Request |
**{dotted-circle}**
|
**{check-circle}**
|
|
[
Address vulnerabilities
](
../../application_security/vulnerabilities/index.md
)
|
**{dotted-circle}**
|
**{check-circle}**
|
...
...
@@ -242,25 +242,6 @@ The configuration tool works best with no existing `.gitlab-ci.yml` file, or wit
configuration file. If you have a complex GitLab configuration file it may not be parsed
successfully, and an error may occur.
### Customizing the SAST settings
The SAST settings can be changed through
[
CI/CD variables
](
#available-cicd-variables
)
by using the
[
`variables`
](
../../../ci/yaml/index.md#variables
)
parameter in
`.gitlab-ci.yml`
.
In the following example, we include the SAST template and at the same time we
set the
`SAST_GOSEC_LEVEL`
variable to
`2`
:
```
yaml
include
:
-
template
:
Security/SAST.gitlab-ci.yml
variables
:
SAST_GOSEC_LEVEL
:
2
```
Because the template is
[
evaluated before
](
../../../ci/yaml/index.md#include
)
the pipeline configuration, the last mention of the variable takes precedence.
### Overriding SAST jobs
WARNING:
...
...
@@ -483,7 +464,20 @@ can use `MAVEN_REPO_PATH`. See
### Available CI/CD variables
SAST can be
[
configured
](
#customizing-the-sast-settings
)
using CI/CD variables.
SAST can be configured using the
[
`variables`
](
../../../ci/yaml/index.md#variables
)
parameter in
`.gitlab-ci.yml`
.
The following example includes the SAST template to override the
`SAST_GOSEC_LEVEL`
variable to
`2`
. The template is
[
evaluated before
](
../../../ci/yaml/index.md#include
)
the pipeline
configuration, so the last mention of the variable takes precedence.
```
yaml
include
:
-
template
:
Security/SAST.gitlab-ci.yml
variables
:
SAST_GOSEC_LEVEL
:
2
```
#### Logging level
...
...
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