mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
* feat(cataloger): add a terraform provider cataloger * chore: bump schema from 16.0.19 -> 16.0.20 ------ Signed-off-by: Thomas Gosteli <thomas.gosteli@protonmail.ch> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Signed-off-by: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
12 lines
287 B
Go
12 lines
287 B
Go
package terraform
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
func NewLockCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("terraform-lock-cataloger").
|
|
WithParserByGlobs(parseTerraformLock, "**/.terraform.lock.hcl")
|
|
}
|