Build 1 success
gitbay-security on main · d53aa8ab9f · queued 2026-11-01 04:00 UTC · finished 2026-11-01 05:03 UTC · ran 1m28s
setup
$ git clone ssh://git@127.0.0.1/krz/fold.git (d53aa8ab9f)
step 1/2 mkdir -p "$GITBAY_RESULTS"
step 2/2 opengrep scan --quiet --disable-version-check --config /opt/opengrep-rules --sarif-output="$GITBAY_RESULTS/opengrep.sarif" .
┌──────────────────┐
│ 11 Code Findings │
└──────────────────┘
App/Sources/Confetti.swift
❯❱ opt.opengrep-rules.swift.lang.crypto.insecure-random
A random number generator was detected which is **not** *guaranteed* to be Cryptographically secure.
If the source of entropy is used for security purposes (e.g. with other Cryptographic operations),
make sure to use the `SecCopyRandomBytes` API explicitly.
33┆ let origin = SIMD2(Double.random(in: 0.35...0.65), Double.random(in: 0.3...0.4))
⋮┆----------------------------------------
33┆ let origin = SIMD2(Double.random(in: 0.35...0.65), Double.random(in: 0.3...0.4))
⋮┆----------------------------------------
34┆ let velocity = SIMD2(Double.random(in: -0.7...0.7), Double.random(in: -1.6...(-0.8)))
⋮┆----------------------------------------
34┆ let velocity = SIMD2(Double.random(in: -0.7...0.7), Double.random(in: -1.6...(-0.8)))
⋮┆----------------------------------------
35┆ let size = CGSize(width: Double.random(in: 6...11), height: Double.random(in: 4...9))
⋮┆----------------------------------------
35┆ let size = CGSize(width: Double.random(in: 6...11), height: Double.random(in: 4...9))
⋮┆----------------------------------------
37┆ let spin = Double.random(in: -6...6), tumble = Double.random(in: 4...10)
⋮┆----------------------------------------
37┆ let spin = Double.random(in: -6...6), tumble = Double.random(in: 4...10)
⋮┆----------------------------------------
38┆ let phase = Double.random(in: 0...(2 * .pi))
⋮┆----------------------------------------
40┆ let sides: (Color, Color) = Bool.random() ? (front, back) : { let c =
accents.randomElement()!; return (c, c) }()
scripts/take-screenshots.sh
❱ opt.opengrep-rules.bash.lang.correctness.unquoted-variable-expansion-in-command
Variable expansions must be double-quoted so as to prevent being split into multiple pieces
according to whitespace or whichever separator is specified by the IFS variable. If you really wish
to split the variable's contents, you may use a variable that starts with an underscore e.g. $_X
instead of $X, and semgrep will ignore it. If what you need is an array, consider using a proper
bash array.
45┆ n="$(printf '%s\n' $all | grep -nx "$scene" | cut -d: -f1)"
results uploaded