mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-17 11:57:12 +03:00
updates (#1947)
This commit is contained in:
parent
1a2f08827f
commit
720a049464
@ -46,10 +46,13 @@ func remdiationSetup(c *checker.CheckRequest) error {
|
||||
remediationOnce.Do(func() {
|
||||
// Get the branch for remediation.
|
||||
b, err := c.RepoClient.GetDefaultBranch()
|
||||
if err != nil && !errors.Is(err, clients.ErrUnsupportedFeature) {
|
||||
if err != nil {
|
||||
if !errors.Is(err, clients.ErrUnsupportedFeature) {
|
||||
remediationSetupErr = err
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if b.Name != nil {
|
||||
remediationBranch = *b.Name
|
||||
uri := c.Repo.URI()
|
||||
|
Loading…
Reference in New Issue
Block a user