Skip to content

Commit

Permalink
fix gosec and golint
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Oct 8, 2024
1 parent 51459a1 commit 8cf861f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/golint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- uses: golangci/golangci-lint-action@v6
with:
version: 'v1.54'
args: -v
args: -v --timeout=10m
1 change: 1 addition & 0 deletions types/azurerm_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ var pluralizeClient = pluralize.NewClient()
func NewLabel(id string) string {
resourceType := ResourceTypeOfResourceId(id)
lastSegment := LastSegment(resourceType)
// #nosec G404
return fmt.Sprintf("%s_%d", pluralizeClient.Singular(lastSegment), rand.Intn(100))
}

Expand Down

0 comments on commit 8cf861f

Please sign in to comment.