Skip to content

Commit

Permalink
Update oafp-examples.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar authored Feb 6, 2025
1 parent 1cc6276 commit 205428d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oafp-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1146,3 +1146,8 @@ data:
d: Given an AWS ECR repository and image tag retrieve the AWS Inspector vulnerabilities and list a quick overview in an Excel spreadsheet
e: |-
REPO=my/image && TAG=1.2.3 && aws inspector2 list-findings --filter "{\"ecrImageRepositoryName\":[{\"comparison\":\"EQUALS\",\"value\":\"$REPO\"}],\"ecrImageTags\":[{\"comparison\":\"EQUALS\",\"value\":\"$TAG\"}]}" --output json | oafp path="findings[].{title:title,severity:severity,lastObservedAt:lastObservedAt,firstObservedAt:firstObservedAt,lastObservedAt:lastObservedAt,fixAvailable:fixAvailable,where:join(', ',(packageVulnerabilityDetails.vulnerablePackages[].nvl(filePath, name)))}" out=xls
- c: Generic
s: Reverse
d: Given a text file revert the line ordering
e: |-
cat somefile.txt | oafp in=lines linesjoin=true path="reverse([]).join('\n',@)"

0 comments on commit 205428d

Please sign in to comment.