Skip to content

Commit

Permalink
⭐️ add help for new gcp instance scanshot (#641)
Browse files Browse the repository at this point in the history
This change works in combination with
mondoohq/cnquery#1314 and
mondoohq/cnquery#1315 to bring GCP compute
instance snapshot scanning to cnspec.
  • Loading branch information
chris-rock authored Jul 3, 2023
1 parent a1a5148 commit 6162c57
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ upstream/generate:
cnspec/build:
go build -o cnspec ${LDFLAGSDIST} apps/cnspec/cnspec.go

.PHONY: cnspec/build/linux
cnspec/build/linux:
GOOS=linux GOARCH=amd64 go build ${LDFLAGSDIST} apps/cnspec/cnspec.go

.PHONY: cnspec/install
cnspec/install:
GOBIN=${GOPATH}/bin go install ${LDFLAGSDIST} apps/cnspec/cnspec.go
Expand Down
3 changes: 3 additions & 0 deletions apps/cnspec/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ configure your Azure credentials and have SSH access to the virtual machines.`,
"gcp-compute-instance": {
Short: "Scan a Google Cloud Platform (GCP) VM instance.",
},
"gcp-compute-snapshot": {
Short: "Scan a Google Cloud Platform (GCP) VM snapshot.",
},
"oci": {
Short: "Scan a Oracle Cloud Infrastructure (OCI) tenancy.",
},
Expand Down
3 changes: 3 additions & 0 deletions apps/cnspec/cmd/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ configure your Azure credentials and have SSH access to the virtual machines.`,
"gcp-compute-instance": {
Short: "Connect to a Google Cloud Platform (GCP) VM instance.",
},
"gcp-compute-snapshot": {
Short: "Connect to a Google Cloud Platform (GCP) VM snapshot.",
},
"vsphere": {
Short: "Connect to a VMware vSphere API endpoint.",
},
Expand Down

0 comments on commit 6162c57

Please sign in to comment.