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
7571f184
Commit
7571f184
authored
Jan 26, 2022
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Add SAST note on private dependencies
Adds additional note to SAST docs around fetching private dependencies
parent
5ab0e0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/user/application_security/sast/index.md
doc/user/application_security/sast/index.md
+19
-0
No files found.
doc/user/application_security/sast/index.md
View file @
7571f184
...
...
@@ -661,6 +661,25 @@ repositories and thus require credentials like username and password to download
Depending on the analyzer, such credentials can be provided to
it via
[
custom CI/CD variables
](
#custom-cicd-variables
)
.
#### Using a CI/CD variable to pass username and password to a private Go repository
If your Go project depends on private modules, see
[
Fetch modules from private projects
](
../../packages/go_proxy/index.md#fetch-modules-from-private-projects
)
for how to provide authentication over HTTPS.
To specify credentials via
`~/.netrc`
provide a
`before_script`
containing the following:
```
yaml
gosec-sast
:
before_script
:
-
|
cat <<EOF > ~/.netrc
machine gitlab.com
login $CI_DEPLOY_USER
password $CI_DEPLOY_PASSWORD
EOF
```
#### Using a CI/CD variable to pass username and password to a private Maven repository
If your private Maven repository requires login credentials,
...
...
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