Skip to content

Commit

Permalink
Merge branch 'develop' into merge-gitleaks-to-develop
Browse files Browse the repository at this point in the history
  • Loading branch information
philipturnbull committed Jun 18, 2024
2 parents ae48945 + 94b11a2 commit 3e72c3b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions go/lang/security/audit/crypto/math_random.fixed.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import (
"crypto/rand"
// ruleid: math-random-used
mrand "crypto/rand"
// ruleid: math-random-used
mrand "crypto/rand"
// ruleid: math-random-used
mrand "crypto/rand"
// ok: math-random-used
mrand "math/rand/something"
)

func main() {
Expand Down
6 changes: 6 additions & 0 deletions go/lang/security/audit/crypto/math_random.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import (
"crypto/rand"
// ruleid: math-random-used
mrand "math/rand"
// ruleid: math-random-used
mrand "math/rand/v2"
// ruleid: math-random-used
mrand "math/rand/v222"
// ok: math-random-used
mrand "math/rand/something"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go/lang/security/audit/crypto/math_random.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rules:
import "$MATH"
- metavariable-regex:
metavariable: $MATH
regex: ^(math/rand)$
regex: ^(math/rand(\/v[0-9]+)*)$
- pattern-either:
- pattern-inside: |
...
Expand Down

0 comments on commit 3e72c3b

Please sign in to comment.