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
0b7ce133
Commit
0b7ce133
authored
Oct 24, 2019
by
Philippe Lafoucrière
Committed by
Achilleas Pipinellis
Oct 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix confusion about stage name
Also wrapped some long lines.
parent
7c211cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
9 deletions
+29
-9
doc/user/application_security/index.md
doc/user/application_security/index.md
+29
-9
No files found.
doc/user/application_security/index.md
View file @
0b7ce133
...
@@ -203,14 +203,34 @@ An approval will be optional when a license report:
...
@@ -203,14 +203,34 @@ An approval will be optional when a license report:
-
Contains no software license violations.
-
Contains no software license violations.
-
Contains only new licenses that are
`approved`
or unknown.
-
Contains only new licenses that are
`approved`
or unknown.
<!--
## Troubleshooting
## Troubleshooting
Include any troubleshooting steps that you can foresee. If you know beforehand what issues
### Getting error message `sast job: stage parameter should be [some stage name here]`
one might have when setting this up, or when something is changed, or on upgrading, it's
important to describe those, too. Think of things that may go wrong and include them here.
This is important to minimize requests for support, and to avoid doc comments with
questions that you know someone might ask.
Each scenario can be a third-level heading, e.g.
`### Getting error message X`
.
When including a security job template like
[
`SAST`
](
sast/index.md#configuration
)
,
If you have none to add when creating a doc, leave this section in place
the following error can be raised, depending on your GitLab CI/CD configuration:
but commented out to help encourage others to add to it in the future. -->
```
Found errors in your .gitlab-ci.yml:
* sast job: stage parameter should be unit-tests
```
This error appears when the stage (nammed
`test`
) of the included job isn't declared
in
`.gitlab-ci.yml`
.
To fix this issue, you can either:
-
Add a
`test`
stage in your
`.gitlab-ci.yml`
.
-
Change the default stage of the included security jobs. For example, with
`SAST`
:
```
yaml
include
:
template
:
SAST.gitlab-ci.yml
sast
:
stage
:
unit-tests
```
[
Learn more on overriding the SAST template
](
sast/index.md#overriding-the-sast-template
)
.
All the security scanning tools define their stage, so this error can occur with
all of them.
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