diff --git a/packer-provisioner-mondoo/go.mod b/packer-provisioner-mondoo/go.mod index f3759307..075f211f 100644 --- a/packer-provisioner-mondoo/go.mod +++ b/packer-provisioner-mondoo/go.mod @@ -4,3 +4,5 @@ require ( github.com/hashicorp/packer v1.3.4-0.20190225173202-1c3bc70b127b golang.org/x/crypto v0.0.0-20180322175230-88942b9c40a4 ) + +go 1.13 diff --git a/packer-provisioner-mondoo/main.go b/packer-provisioner-mondoo/main.go index e961cc16..edd97fde 100644 --- a/packer-provisioner-mondoo/main.go +++ b/packer-provisioner-mondoo/main.go @@ -83,6 +83,9 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { } } + // ensure that we disable ssh auth, since the packer proxy only allows one auth mechanism + p.config.MondooEnvVars = append(p.config.MondooEnvVars, "SSH_AUTH_SOCK=") + if !p.config.UseSFTP { p.config.MondooEnvVars = append(p.config.MondooEnvVars, "MONDOO_SSH_SCP=on") } @@ -224,7 +227,7 @@ func (p *Provisioner) executeMondoo(ui packer.Ui, comm packer.Communicator, priv envvars = append(envvars, p.config.MondooEnvVars...) } - args := []string{"vuln"} + args := []string{"scan"} conf := &VulnOpts{ Asset: &VulnOptsAsset{