github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/github/repositories.go (about) 1 package github 2 3 import ( 4 defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types" 5 ) 6 7 type Repository struct { 8 Metadata defsecTypes.Metadata 9 Public defsecTypes.BoolValue 10 VulnerabilityAlerts defsecTypes.BoolValue 11 Archived defsecTypes.BoolValue 12 } 13 14 func (r Repository) IsArchived() bool { 15 return r.Archived.IsTrue() 16 }