Skip to content

Commit

Permalink
add link to CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarboe committed Jan 6, 2021
1 parent a194b49 commit df42ce9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/cicd.md
Expand Up @@ -36,9 +36,9 @@ Documentation on the GitHub actions workflow syntax is available [here](https://

## GitLab CI

GitLab CI can use [Docker images](https://docs.gitlab.com/ee/ci/docker/using_docker_images.html) as part of a pipeline. We can take advantage of this functionality and use Terrascan's docker image as part of your [pipeline](https://docs.gitlab.com/ee/ci/pipelines/) to scan infrastructure as code.
[GitLab CI](https://docs.gitlab.com/ee/ci/README.html) can use [Docker images](https://docs.gitlab.com/ee/ci/docker/using_docker_images.html) as part of a pipeline. We can take advantage of this functionality and use Terrascan's docker image as part of your [pipeline](https://docs.gitlab.com/ee/ci/pipelines/) to scan infrastructure as code.

To do this you can update your .gitlab-ci.yml file to use the "accurics/terrascan:latest" image with the ["bin/sh", "-c"] entrypoint. Terrascan can be found on "/go/bin" in the image and you can use any of it's commands depending on your needs. Here's an example .gitlab-ci.yml file:
To do this you can update your .gitlab-ci.yml file to use the "accurics/terrascan:latest" image with the ["bin/sh", "-c"] entrypoint. Terrascan can be found on "/go/bin" in the image and you can use any [Terrascan command line options](http://ubusvr:8000/getting-started/usage/#terrascan-commands) according to your needs. Here's an example .gitlab-ci.yml file:

``` YAML
stages:
Expand All @@ -52,6 +52,3 @@ terrascan:
script:
- /go/bin/terrascan scan .
```

Documentation for GitLab CI can be found [here](https://docs.gitlab.com/ee/ci/README.html).

0 comments on commit df42ce9

Please sign in to comment.