github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/internal/adapters/terraform/github/adapt.go (about)

     1  package github
     2  
     3  import (
     4  	"github.com/khulnasoft-lab/defsec/internal/adapters/terraform/github/branch_protections"
     5  	"github.com/khulnasoft-lab/defsec/internal/adapters/terraform/github/repositories"
     6  	"github.com/khulnasoft-lab/defsec/internal/adapters/terraform/github/secrets"
     7  	"github.com/khulnasoft-lab/defsec/pkg/providers/github"
     8  	"github.com/khulnasoft-lab/defsec/pkg/terraform"
     9  )
    10  
    11  func Adapt(modules terraform.Modules) github.GitHub {
    12  	return github.GitHub{
    13  		Repositories:       repositories.Adapt(modules),
    14  		EnvironmentSecrets: secrets.Adapt(modules),
    15  		BranchProtections:  branch_protections.Adapt(modules),
    16  	}
    17  }