Skip to content

Commit

Permalink
docs: batch-import-findings limit (#2851)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCharlesHay committed Sep 14, 2022
1 parent 552732b commit c51f2b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/integrations/aws-security-hub.md
Expand Up @@ -22,6 +22,14 @@ Then, you can upload it with AWS CLI.
$ aws securityhub batch-import-findings --findings file://report.asff
```

### Note

The [batch-import-findings](https://docs.aws.amazon.com/cli/latest/reference/securityhub/batch-import-findings.html#options) command limits the number of findings uploaded to 100 per request. The best known workaround to this problem is using [jq](https://stedolan.github.io/jq/) to run the following command

```
jq '.[:100]' report.asff 1> short_report.asff
```

## Customize
You can customize [asff.tpl](https://github.com/aquasecurity/trivy/blob/main/contrib/asff.tpl)

Expand Down

0 comments on commit c51f2b8

Please sign in to comment.