Skip to content

Commit

Permalink
Update reference to v1 + add .json support
Browse files Browse the repository at this point in the history
  • Loading branch information
serresebastien committed Oct 12, 2023
1 parent 96e296e commit 91883f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In your Github worflows, under steps, add the following:

```yml
name: AWS Sustainability Scanner
uses: aws-actions/sustainability-scanner@latest
uses: aws-actions/sustainability-scanner@v1
with:
<INPUTS>
```
Expand All @@ -21,7 +21,7 @@ Path to the specific file you want to scan.

### `directory`

Path to the directory you want to scan. Every `.yml` and `.yaml` files that this directory contain will be scan.
Path to the directory you want to scan. Every `.json`, `.yml` and `.yaml` files that this directory contain will be scan.

### `rules_file`

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
# Run AWS Sustainability Scanner against template.yaml
- name: AWS Sustainability Scanner
uses: aws-actions/sustainability-scanner@latest
uses: aws-actions/sustainability-scanner@v1
with:
file: 'template.yaml'
```
Expand All @@ -81,9 +81,9 @@ jobs:
# Run AWS Sustainability Scanner against "my-cf-stacks" folder with an additional rules set
- name: AWS Sustainability Scanner
uses: aws-actions/sustainability-scanner@latest
uses: aws-actions/sustainability-scanner@v1
with:
directory: 'my-cf-stacks/'
directory: 'my-cf-stacks'
rules-file: 'tests/additional-rules.json'
```

Expand Down

0 comments on commit 91883f5

Please sign in to comment.