mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
simplify few lines
This commit is contained in:
parent
2ce644b84b
commit
79d6e3f7ba
1 changed files with 3 additions and 7 deletions
|
|
@ -42,9 +42,7 @@ type Config struct {
|
|||
|
||||
// The file path or URL to the SBOM file in the Packer artifact.
|
||||
// This file must either be in the SPDX or CycloneDX format.
|
||||
// Not required if `auto_generate` is true.
|
||||
//
|
||||
// -> **Note:** You must specify either `source` OR `auto_generate`, but not both. These options are mutually exclusive.
|
||||
// Mutually exclusive with `auto_generate`.
|
||||
Source string `mapstructure:"source" required:"true"`
|
||||
|
||||
// The path on the local machine to store a copy of the SBOM file.
|
||||
|
|
@ -64,10 +62,8 @@ type Config struct {
|
|||
// Enable automatic SBOM generation by downloading and running a scanner
|
||||
// tool on the remote host. When enabled, the provisioner will detect the
|
||||
// remote OS and architecture, download an appropriate scanner (Syft by
|
||||
// default), and execute it to generate an SBOM. Not required if `source`
|
||||
// is provided.
|
||||
//
|
||||
// -> **Note:** You must specify either `source` OR `auto_generate`, but not both. These options are mutually exclusive.
|
||||
// default), and execute it to generate an SBOM.
|
||||
// Mutually exclusive with `source`.
|
||||
AutoGenerate bool `mapstructure:"auto_generate" required:"true"`
|
||||
|
||||
// URL to scanner tool. Supports go-getter syntax including HTTP, local
|
||||
|
|
|
|||
Loading…
Reference in a new issue