Commit 9083509f authored by GitLab Bot's avatar GitLab Bot

Add latest changes from gitlab-org/gitlab@master

parent c77e1642
---
title: Fix variable passthrough in the SAST CI/CD template when using DinD
merge_request: 25697
author:
type: fixed
...@@ -60,7 +60,7 @@ published to the GitLab Package Registry. ...@@ -60,7 +60,7 @@ published to the GitLab Package Registry.
Start by opening your terminal and creating a directory where you would like to Start by opening your terminal and creating a directory where you would like to
store the project in your environment. From inside the directory, you can run store the project in your environment. From inside the directory, you can run
the following Maven command to initalize a new package: the following Maven command to initialize a new package:
```shell ```shell
mvn archetype:generate -DgroupId=com.mycompany.mydepartment -DartifactId=my-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false mvn archetype:generate -DgroupId=com.mycompany.mydepartment -DartifactId=my-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
...@@ -71,7 +71,7 @@ The arguments are as follows: ...@@ -71,7 +71,7 @@ The arguments are as follows:
- `DgroupId`: A unique string that identifies your package. You should follow - `DgroupId`: A unique string that identifies your package. You should follow
the [Maven naming conventions](https://maven.apache.org/guides/mini/guide-naming-conventions.html). the [Maven naming conventions](https://maven.apache.org/guides/mini/guide-naming-conventions.html).
- `DartifactId`: The name of the JAR, appended to the end of the `DgroupId`. - `DartifactId`: The name of the JAR, appended to the end of the `DgroupId`.
- `DarchetypeArtifactId`: The archetype used to create the intial structure of - `DarchetypeArtifactId`: The archetype used to create the initial structure of
the project. the project.
- `DinteractiveMode`: Create the project using batch mode (optional). - `DinteractiveMode`: Create the project using batch mode (optional).
......
...@@ -36,9 +36,9 @@ sast: ...@@ -36,9 +36,9 @@ sast:
export DOCKER_HOST='tcp://localhost:2375' export DOCKER_HOST='tcp://localhost:2375'
fi fi
fi fi
- ENVS=`printenv | grep -vE '^(DOCKER_|CI|GITLAB_|FF_|HOME|PWD|OLDPWD|PATH|SHLVL|HOSTNAME)' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' '`
- | - |
ENVS=`printenv | grep -vE '^(DOCKER_|CI|GITLAB_|FF_|HOME|PWD|OLDPWD|PATH|SHLVL|HOSTNAME)' | sed -n '/^[^\t]/s/=.*//p' | sed '/^$/d' | sed 's/^/-e /g' | tr '\n' ' '` docker run $ENVS \
docker run "$ENVS" \
--volume "$PWD:/code" \ --volume "$PWD:/code" \
--volume /var/run/docker.sock:/var/run/docker.sock \ --volume /var/run/docker.sock:/var/run/docker.sock \
"registry.gitlab.com/gitlab-org/security-products/sast:$SAST_VERSION" /app/bin/run /code "registry.gitlab.com/gitlab-org/security-products/sast:$SAST_VERSION" /app/bin/run /code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment