CircleCI
How to integrate Meterian with CircleCI pipeline
Adding Meterian to your CI pipeline is very simple, and it does not require much effort:
Here is a simple config.yml configuration file that does so:
Then on the CircleCI dashboard, open your project and open your project' settings. Here you will be able to set the METERIAN_API_TOKEN as environment variable.
Once the configuration has been committed and pushed on the repository, CircleCI will launch the 'meterian' job.
How does it work
Docker executor
Should you wish to use the Docker executor here's an adaptation of the above example that does just that
Jobs that use the Docker executor run within a container created with the specified image (in this case we are using the Meterian Dockerized Client image), hence why you need to invoke the entry point script yourself as part of your steps to have your project scanned (after the source code checkout on line 7 of the snippet).
Here's an adapted example suited to scan a Golang project winch will require private modules to be resolved
Last updated
Was this helpful?