Build 1 success

gitbay-security on main · afbc417c28 · queued 2026-11-01 04:00 UTC · finished 2026-11-01 04:49 UTC · ran 1m46s

setup
$ git clone ssh://git@127.0.0.1/krz/daybyday.git (afbc417c28)
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" .
                    
                    
┌──────────────────┐
│ 29 Code Findings │
└──────────────────┘
                                    
    DayByDay/Parent/ParentGate.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.                                           
                                                                                                              
           18┆ ParentGateChallenge(a: Int.random(in: 6...9, using: &rng), b: Int.random(in: 6...9, using:
               &rng))                                                                                    
            ⋮┆----------------------------------------
           18┆ ParentGateChallenge(a: Int.random(in: 6...9, using: &rng), b: Int.random(in: 6...9, using:
               &rng))                                                                                    
                                        
    DayByDay/Parent/ParentGateView.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.                                           
                                                                                                              
          115┆ var rng = SystemRandomNumberGenerator()
                                          
    DayByDay/Quiz/CelebrationOverlay.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.                                           
                                                                                                              
           75┆ var rng = SystemRandomNumberGenerator()
                                
    DayByDay/Quiz/Counting.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.                                           
                                                                                                              
           34┆ self.init(target: Int.random(in: 1...10, using: &rng),
                                    
    DayByDay/Quiz/CountingView.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.                                           
                                                                                                              
           24┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           32┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
          116┆ var rng = SystemRandomNumberGenerator()
                                       
    DayByDay/Quiz/GameDestination.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.                                           
                                                                                                              
           37┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           42┆ var rng = SystemRandomNumberGenerator()
                                 
    DayByDay/Quiz/MovesView.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.                                           
                                                                                                              
           21┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           46┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           72┆ var rng = SystemRandomNumberGenerator()
                                
    DayByDay/Quiz/Question.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.                                           
                                                                                                              
          102┆ var target = Double.random(in: 0..<total, using: &rng)
                             
    DayByDay/Quiz/Round.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.                                           
                                                                                                              
           38┆ rng: some RandomNumberGenerator = SystemRandomNumberGenerator()) {
                                 
    DayByDay/Quiz/RoundView.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.                                           
                                                                                                              
          104┆ var rng = SystemRandomNumberGenerator()
                                          
    DayByDay/Quiz/SequencePuzzleView.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.                                           
                                                                                                              
          189┆ var rng = SystemRandomNumberGenerator()
                                 
    DayByDay/Quiz/ShakeRain.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.                                           
                                                                                                              
           40┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           42┆ (Double.random(in: 0...1, using: &rng), Double.random(in: 0...1, using: &rng),
            ⋮┆----------------------------------------
           42┆ (Double.random(in: 0...1, using: &rng), Double.random(in: 0...1, using: &rng),
            ⋮┆----------------------------------------
           43┆ Double.random(in: 0.8...1.3, using: &rng))
                                
    DayByDay/Quiz/SortView.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.                                           
                                                                                                              
           30┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
           38┆ var rng = SystemRandomNumberGenerator()
            ⋮┆----------------------------------------
          120┆ var rng = SystemRandomNumberGenerator()
                                              
    DayByDay/Screenshots/ScreenshotScene.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.                                           
                                                                                                              
           35┆ var rng = SystemRandomNumberGenerator()
                                        
    DayByDayTests/SpokenLinesTests.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.                                           
                                                                                                              
           48┆ let birthday = (month: Int.random(in: 1...12, using: &rng), day: Int.random(in: 1...28,
               using: &rng))                                                                          
            ⋮┆----------------------------------------
           48┆ let birthday = (month: Int.random(in: 1...12, using: &rng), day: Int.random(in: 1...28,
               using: &rng))                                                                          
                                      
    scripts/render-voice-elevenlabs.py
    ❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
          Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic    
          value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib  
          calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
                                                                                                              
          101┆ pcm = urllib.request.urlopen(req, timeout=60).read()
                               
    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.                                                                                        
                                                                                                             
           44┆ n="$(printf '%s\n' $all | grep -nx "$scene" | cut -d: -f1)"

results uploaded