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() {
|
remediationOnce.Do(func() {
|
||||||
// Get the branch for remediation.
|
// Get the branch for remediation.
|
||||||
b, err := c.RepoClient.GetDefaultBranch()
|
b, err := c.RepoClient.GetDefaultBranch()
|
||||||
if err != nil && !errors.Is(err, clients.ErrUnsupportedFeature) {
|
if err != nil {
|
||||||
remediationSetupErr = err
|
if !errors.Is(err, clients.ErrUnsupportedFeature) {
|
||||||
|
remediationSetupErr = err
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.Name != nil {
|
if b.Name != nil {
|
||||||
remediationBranch = *b.Name
|
remediationBranch = *b.Name
|
||||||
uri := c.Repo.URI()
|
uri := c.Repo.URI()
|
||||||
|
Loading…
Reference in New Issue
Block a user