Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prevent external http requests during preview execution #20

Description

@Emyrk

Preview allows fetching modules from various sources, including remote resources. There is an OptionWithDownloads(false) that prevents this. An even better solution would include passing in an http.Client that prevents transport.

https://github.com/aquasecurity/trivy/blob/main/pkg/iac/scanners/terraform/parser/module_retrieval.go#L19-L20

Or some test should exist to verify this behavior.

This should be completed before early-access. We will add a Trivy-specific ticket to track our upstream changes after we fix this in our fork.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

early-accesscandidate for an early-access, or experimental, release

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions