github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/github/branch_protections.go (about)

     1  package github
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type BranchProtection struct {
     8  	Metadata             defsecTypes.Metadata
     9  	RequireSignedCommits defsecTypes.BoolValue
    10  }
    11  
    12  func (b BranchProtection) RequiresSignedCommits() bool {
    13  	return b.RequireSignedCommits.IsTrue()
    14  }