Build 4 success

gitbay-security on main · 7520ce2445 · queued 2026-11-02 04:00 UTC · finished 2026-11-02 04:49 UTC · ran 1m47s

setup
$ git clone ssh://git@127.0.0.1/krz/daybyday.git (7520ce2445)
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" .
                    
                    
┌──────────────────┐
│ 28 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()

results uploaded