bridgecrewio / yor

Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
https://www.yor.io
Apache License 2.0
810 stars 123 forks source link

Yor errors when parsing serverless.yml #280

Closed anthonyangel closed 2 years ago

anthonyangel commented 2 years ago

Describe the bug When parsing serverless.yml if provider.deploymentBucket is specified then Yor will error with [WARNING] Failed to parser serverless yaml at serverless.yml due to: interface conversion: interface {} is map[string]interface {}, not serverless.DeploymentBucket

To Reproduce

provider:
  name: aws
  deploymentBucket:
    blockPublicAccess: true

Expected behavior Yor works

Additional context It looks like this error comes from the goserverless package. https://github.com/thepauleh/goserverless/pull/10 is related

anthonyangel commented 2 years ago

Fixed by https://github.com/bridgecrewio/yor/pull/288