If you created a token, the service displays a success message and a field indicating the existence of a token.You can show or hide the token string by clicking the eye shaped icon. Next to the show/hide icon is a copy icon to enable copying the token to the OS clipboard. You can also regenerate the token by clicking the
Re-generate Token
button. Click the
View Token List
button to view a list of existing tokens.A list of existing tokens is also available on the Tokens panel, enabling you to review existing tokens before creating a new one.
Create tool mapper
The Create mapper feature enables administrators to add data mapping files to their pipeline through the user interface, giving users sample generated commands such as CURL, GitHub Actions, and Jenkins. This capability enables an efficient method of posting mapped data.To create a tool mapper, you must have a mapping file containing mapping instructions such as the following example:
{
"tool": "trivy",
"mapper": {
"imagescanmapping": {
"analysisdate": "",
"cves": "",
"cvssscore": "CVSS.nvd.V3Score",
"datasource": "PrimaryURL",
"description": "Description",
"fixedversions": "",
"imagedigest": "Layer.Digest",
"packagename": "PkgName",
"packagepath": "PkgID",
"packagetype": "PkgPath",
"packageversion": "InstalledVersion",
"published": "",
"severity": "Severity",
"severitysource": "",
"vulnerabilityid": ""
},
"root": "Results.#.Vulnerabilities"
},
"parentmapper": {
"imagescanmapping": {
"analysisdate": "",
"imagedigest": "Layer.Digest"
},
"root": "Results.#.Vulnerabilities"
}
}
A tool mapper for Trivy is being added, which is mapped with container vulnerability scan.
Before creating the mapper, review the requirements for each DevOps phase presented in
Mapper configuration, then use the following procedure, borrowing from the example mapper file as necessary:
Click Create tool mapper. The service displays the Create mapper wizard.
Select a tool category from the Tool Category dropdown.
Select Use Existing Token if a current token for the tool exists or Create New Token to create one if one does not exist.
Select an existing token from the token dropdown, or Create a new token using the procedure in the previous section
Create token
.
Click
Next
. The wizard progresses to Tool Manager.
Select
Existing Mapper
to specify an existing (previously added) mapping file, or
Create Mapper
to add a new mapping file.
In the case of
Existing Mapper
, select a tool from the
Select tool
dropdown or, in the case of
Create Mapper
, click
Add file
and select your mapping file. If you add a mapping file, the service displays the file content on an edit canvas. Edit the file if necessary.
Click
Next
. The wizard progresses to
Command Generation
and displays all parameters.
Select values for the parameters.
Click
Generate Command
. The wizard progresses to
View Generated Command
. The command is presented as a CURL, GitHubAction and Jenkins.
Copy the generated command in the form of your choice and add it to your pipeline.