Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thedebugger committed Jul 23, 2024
1 parent 7849428 commit c9e2bac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/branch/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ package branch

import (
"fmt"
"math/rand"
"os"
"path"
"strconv"
"math/rand"

"sigs.k8s.io/yaml"

Expand Down Expand Up @@ -92,7 +92,10 @@ func Branch(manifest model.Manifest, step int, dryrun bool, token string) error
if step > 2 {
prName = "[release-" + release + "] " + prName
}
if err := util.CreatePR(manifest, repo, "automatedBranchStep"+strconv.Itoa(step)+"-"+strconv.Itoa(rand.Intn(100)), prName, "", dryrun, token, "", "", []string{}); err != nil {

// Disable linter G404: Use of weak random number generator
err := util.CreatePR(manifest, repo, "automatedBranchStep"+strconv.Itoa(step)+"-"+strconv.Itoa(rand.Intn(100)), prName, "", dryrun, token, "", "", []string{}) //nolint:all
if err != nil {
return fmt.Errorf("failed PR creation: %v", err)
}
}
Expand Down

0 comments on commit c9e2bac

Please sign in to comment.