Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cli/docs/scorecard.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ This tutorial will walk you through setting up Scorecard for a single project.
```
4. Create a GCS bucket for storing CAI data:
```
gsutil mb gs://$CAI_BUCKET_NAME
gcloud storage buckets create gs://$CAI_BUCKET_NAME
```
5. Optionally, create a public GCS bucket to trigger a violation:
```
gsutil mb gs://$PUBLIC_BUCKET_NAME
gsutil iam ch allUsers:objectViewer gs://$PUBLIC_BUCKET_NAME
gcloud storage buckets create gs://$PUBLIC_BUCKET_NAME
gcloud storage buckets add-iam-policy-binding gs://$PUBLIC_BUCKET_NAME --member=allUsers --role=roles/storage.objectViewer
```
6. Optionally, export the CAI data to GCS:
```
Expand Down Expand Up @@ -91,8 +91,8 @@ You can also run CFT Scorecard against locally downloaded CAI data:

```
mkdir cai-dir
gsutil cp gs://$CAI_BUCKET_NAME/resource_inventory.json ./cai-dir/
gsutil cp gs://$CAI_BUCKET_NAME/iam_inventory.json ./cai-dir/
gcloud storage cp gs://$CAI_BUCKET_NAME/resource_inventory.json ./cai-dir/
gcloud storage cp gs://$CAI_BUCKET_NAME/iam_inventory.json ./cai-dir/
./cft scorecard --policy-path ./policy-library \
--dir-path ./cai-dir
```
Expand Down
2 changes: 1 addition & 1 deletion infra/build/developer-tools/build/install_cloud_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ gcloud components install alpha beta terraform-tools gke-gcloud-auth-plugin --qu
rm -rf /usr/local/google-cloud-sdk/.install/.backup

gcloud --version
gsutil version -l
gcloud -v
2 changes: 1 addition & 1 deletion infra/build/developer-tools/build/install_tinkey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cd /build/install_tinkey

TINKEY_VERSION=$1

gsutil cp "gs://tinkey/tinkey-${TINKEY_VERSION}.tar.gz" .
gcloud storage cp "gs://tinkey/tinkey-${TINKEY_VERSION}.tar.gz" .
tar -xzf "tinkey-${TINKEY_VERSION}.tar.gz"

install -o 0 -g 0 -m 0755 tinkey_deploy.jar /usr/bin/
Expand Down
Loading