Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sainathdev committed Nov 9, 2021
1 parent b784bf5 commit 15ab773
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions doc/ecrscan.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,26 @@ Sample Output(JSON)
```json
{
"findings": [
{
"accountId": "333333333333",
"imageDigest": "sha256:88d5da4609681df482d51c4e898d107317c32bd3c4951793138570cc18c1294d",
"imageTag": "latest",
"repositoryName": "dig/pingfederate-server",
"region": "us-east-1",
"comments": "NEW_FINDING",
{
"accountId": "3333333333333",
"imageDigest": "sha256:b20c71bdd914b436f9d4745cb5392cd86c3e2esd4517f5cc442060a1ec3193ed",
"imageTag": "stage-2021-09-28.060926,prod-2021-10-09.031013,deploy-2.3,nonprod-2021-10-07.01",
"repositoryName": "dig/sample-server",
"imageFindingsCount": {
"HIGH": 1
}
"MEDIUM": 8
},
"comments": "NEW_FINDING",
"region": "us-east-1"
},
{
"accountId": "333333333333",
"imageDigest": "sha256:99d0ab34e24a87884b104e76dea5d917ab026c0cfc352bc9cf2665d5d70f973a",
"imageTag": "v0.0.16",
"repositoryName": "dig/service-gateway",
"region": "us-east-1",
"comments": "**EXCEPTION** Patch will applied this weekend",
"accountId": "3333333333333",
"imageDigest": "sha256:33f43a94fdac3b494ae340c964facaead8b83b0arebddefd65de08c98c7c6fcf4",
"imageTag": "prod-2021-09-06.01,nonprod-2021-09-03.1,release-P8-1",
"repositoryName": "dig/sample-server",
"imageFindingsCount": {
"HIGH": 5,
"MEDIUM": 4
"HIGH": 1,
"LOW": 2,
"MEDIUM": 18
}
}
]
Expand All @@ -46,9 +45,17 @@ cloudig get scan --tag latest -o mdtable
```markdown
Sample output with mdtable format, with specific tag "latest"

| ACCOUNT ID | REGION | REPOSITORY NAME | TAG | VULNERABILITIES(COUNT) | COMMENTS |
| ------------ | --------- | ----------------------------------- | ------ | ---------------------- | ----------- |
| 111111111111 | us-east-1 | temporary-custom-terraform-provider | latest | LOW: 6 | NEW_FINDING |
| | | | | HIGH: 18 | |
| | | | | MEDIUM: 19 | |
| ACCOUNT ID | REGION | REPOSITORY NAME | TAG | VULNERABILITIES(COUNT) | COMMENTS |
|--------------|-----------|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|------------------------|-------------|
| 111111111111 | us-east-1 | dig/sample-server | alpha-2.17.1-pr-394.2 | MEDIUM: 9 | NEW_FINDING |
| | | | | HIGH: 1 | |
| | | | alpha-2.18.1-pr-393.10 | MEDIUM: 9 | NEW_FINDING |
| | | | | HIGH: 1 | |
| | | | alpha-2.17.1-pr-394.1 | MEDIUM: 9 | NEW_FINDING |
| | | | | HIGH: 1 | |
| | | | stage-2021-09-28.060926,prod-2021-10-08.031013,deploy-2.15.1-3,nonprod-2021-10-07.051031 | MEDIUM: 8 | NEW_FINDING |
| | | | prod-2021-09-06.020935,nonprod-2021-09-03.040916,release-P84-1 | LOW: 2 | NEW_FINDING |
| | | | | HIGH: 1 | |
| | | | | MEDIUM: 18 | |

```

0 comments on commit 15ab773

Please sign in to comment.