Skip to content

Commit

Permalink
Chore: Bump versions
Browse files Browse the repository at this point in the history
- Fix lint issues

Signed-off-by: Anoop Gopalakrishnan <[email protected]>
  • Loading branch information
anoop2811 committed Jul 10, 2024
1 parent a8648f5 commit 7acc095
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/server/domain/service/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package service
import (
"bytes"
"context"
"crypto/rand"
"errors"
"fmt"
"math/rand"
"sort"
"strings"
"time"
Expand Down Expand Up @@ -1669,13 +1669,13 @@ func (c *applicationServiceImpl) DryRunAppOrRevision(ctx context.Context, appMod
}

func genWebhookToken() string {
source := rand.NewSource(time.Now().UnixNano())
rng := rand.New(source)
source := rand.NewSource(time.Now().UnixNano()) //nolint:gosec
rng := rand.New(source) //nolint:gosec
runes := []rune("abcdefghijklmnopqrstuvwxyz0123456789")

b := make([]rune, defaultTokenLen)
for i := range b {
b[i] = runes[rng.Intn(len(runes))] // #nosec
b[i] = runes[rng.Intn(len(runes))] //nolint:gosec
}
return string(b)
}
Expand Down

0 comments on commit 7acc095

Please sign in to comment.