Skip to content

Commit

Permalink
updated README to include instructions for installing and running con…
Browse files Browse the repository at this point in the history
…ftest
  • Loading branch information
Chris Carty committed Jul 6, 2020
1 parent f4eb150 commit 6cb4b81
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,24 @@ gcloud asset export ---output-path=gs://<your_bucket_name>/resource_inventory.js
--project=<your_project_id> \ # --folder or --organization can also be used
```

4. Download the Cloud Foundation Toolkit
4. Download [Conftest](https://www.conftest.dev/)

```
# OS X
curl -o cft https://storage.googleapis.com/cft-cli/latest/cft-darwin-amd64
# Linux
curl -o cft https://storage.googleapis.com/cft-cli/latest/cft-linux-amd64
# executable
chmod +x cft
# Windows
curl -o cft.exe https://storage.googleapis.com/cft-cli/latest/cft-windows-amd64
$ wget https://github.com/open-policy-agent/conftest/releases/download/v0.17.1/conftest_0.17.1_Linux_x86_64.tar.gz
$ tar xzf conftest_0.17.1_Linux_x86_64.tar.gz
$ sudo mv conftest /usr/local/bin
```
Installation process for other [OSes](https://www.conftest.dev/install/)

5. Clone this repo

6. RUn the Scorecard
6. Copy files from google storage to your location disk
```
gsutil cp gs://<your_bucket_name>/resource_inventory.json ./cai-dir
```

6. Run the conftest
```
./cft scorecard --policy-path=./guardrails/ \
--bucket=<your_bucket_name>
conftest test -p guardrails cai-dir
```

0 comments on commit 6cb4b81

Please sign in to comment.