mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
* feat(repo): support local repositories * fix tests * test: fix client/server tests * docs: update * test: add fs tests * test: do not update golden files if overridden * docs: remove a comment about fs deprecation
121 lines
3.3 KiB
Plaintext
121 lines
3.3 KiB
Plaintext
{
|
|
"SchemaVersion": 2,
|
|
"ArtifactName": "testdata/fixtures/repo/secrets",
|
|
"ArtifactType": "repository",
|
|
"Metadata": {
|
|
"ImageConfig": {
|
|
"architecture": "",
|
|
"created": "0001-01-01T00:00:00Z",
|
|
"os": "",
|
|
"rootfs": {
|
|
"type": "",
|
|
"diff_ids": null
|
|
},
|
|
"config": {}
|
|
}
|
|
},
|
|
"Results": [
|
|
{
|
|
"Target": "deploy.sh",
|
|
"Class": "secret",
|
|
"Secrets": [
|
|
{
|
|
"RuleID": "aws-access-key-id",
|
|
"Category": "AWS",
|
|
"Severity": "CRITICAL",
|
|
"Title": "AWS Access Key ID",
|
|
"StartLine": 3,
|
|
"EndLine": 3,
|
|
"Code": {
|
|
"Lines": [
|
|
{
|
|
"Number": 1,
|
|
"Content": "#!/bin/sh",
|
|
"IsCause": false,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"Highlighted": "#!/bin/sh",
|
|
"FirstCause": false,
|
|
"LastCause": false
|
|
},
|
|
{
|
|
"Number": 2,
|
|
"Content": "",
|
|
"IsCause": false,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"FirstCause": false,
|
|
"LastCause": false
|
|
},
|
|
{
|
|
"Number": 3,
|
|
"Content": "export AWS_ACCESS_KEY_ID=********************",
|
|
"IsCause": true,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"Highlighted": "export AWS_ACCESS_KEY_ID=********************",
|
|
"FirstCause": true,
|
|
"LastCause": true
|
|
},
|
|
{
|
|
"Number": 4,
|
|
"Content": "",
|
|
"IsCause": false,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"FirstCause": false,
|
|
"LastCause": false
|
|
}
|
|
]
|
|
},
|
|
"Match": "export AWS_ACCESS_KEY_ID=********************",
|
|
"Layer": {}
|
|
},
|
|
{
|
|
"RuleID": "mysecret",
|
|
"Category": "Custom",
|
|
"Severity": "HIGH",
|
|
"Title": "My Secret",
|
|
"StartLine": 7,
|
|
"EndLine": 7,
|
|
"Code": {
|
|
"Lines": [
|
|
{
|
|
"Number": 5,
|
|
"Content": "export GITHUB_PAT=ghp_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
"IsCause": false,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"Highlighted": "export GITHUB_PAT=ghp_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
"FirstCause": false,
|
|
"LastCause": false
|
|
},
|
|
{
|
|
"Number": 6,
|
|
"Content": "",
|
|
"IsCause": false,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"FirstCause": false,
|
|
"LastCause": false
|
|
},
|
|
{
|
|
"Number": 7,
|
|
"Content": "echo ********",
|
|
"IsCause": true,
|
|
"Annotation": "",
|
|
"Truncated": false,
|
|
"Highlighted": "echo ********",
|
|
"FirstCause": true,
|
|
"LastCause": true
|
|
}
|
|
]
|
|
},
|
|
"Match": "echo ********",
|
|
"Layer": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|