In order to work, the Meterian scanner requires a working version of Docker in the image used to run the pipeline.
The only pre-requisite is a Meterian API Token which can be obtained from
your paid subscription account's Meterian Dashboard. If you are using a free account and would like to upgrade, contact [email protected].
​
Setting the Meterian API Token in variables group
Select Library from the Pipelines menu and create a new Variable group. Then add METERIAN_API_TOKEN (click on the lock icon to make it as secret variable).
​
​
Specify the variable group in the pipeline (Option A)
1
# Starter pipeline
2
# Start with a minimal pipeline that you can customize to build and deploy your code.
3
# Add steps that build, run tests, deploy, and mode:
4
# https://aka.ms/yaml
5
​
6
trigger:
7
- main
8
​
9
pool:
10
vmImage: 'ubuntu-latest'
11
12
variables:
13
- group: meterian-team-variables
14
​
15
​
Copied!
​
Setting the Meterian API Token as a pipeline variable (Option B)
From the Pipeline editor, click on Variable in the top right corner
​
Add Meterian task to the pipeline
In the Review section (or whenever editing the Pipeline) Click on "Show Assistant" and select "Meterian Scanner" from the list