Build 5 success

gitbay-security on main · 2c42e8adb4 · queued 2026-11-03 04:00 UTC · finished 2026-11-03 04:19 UTC · ran 1m28s

setup
$ git clone ssh://git@127.0.0.1/audit-labs/audit-tools.git (2c42e8adb4)
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" .
                   
                   
┌─────────────────┐
│ 6 Code Findings │
└─────────────────┘
                                                           
    applications/aws/aws_password_policy/evaluate_policy.py
     ❱ opt.opengrep-rules.python.lang.security.use-defusedcsv
          Detected the generation of a CSV file using the built-in `csv` module. If user data is used to      
          generate the data in this file, it is possible that an attacker could inject a formula when the CSV 
          is imported into a spreadsheet application that runs an attacker script, which could steal data from
          the importing user or, at worst, install malware on the user's computer. `defusedcsv` is a drop-in  
          replacement with the same API that will attempt to mitigate formula injection attempts. You can use 
          `defusedcsv` instead of `csv` to safely generate CSVs.                                              
                                                                                                              
           ▶▶┆ Autofix ▶ defusedcsv.writer(defusedcsvfile)
          129┆ writer = csv.writer(csvfile)
                                                        
    applications/github/collectors/branch_protections.py
    ❯❱ opt.opengrep-rules.python.requests.best-practice.use-raise-for-status
          There's an HTTP request made with requests, but the raise_for_status() utility method isn't used.   
          This can result in request errors going unnoticed and your code behaving in unexpected ways, such as
          if your authorization API returns a 500 error while you're only checking for a 401.                 
                                                                                                              
           88┆ resp = requests.get(url, headers=cfg["headers"], timeout=cfg["timeout"])
                            
    os/linux/report/linux.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.                                                                                        
                                                                                                             
           41┆ $command >> "$REPORT_FILE" 2>&1
                    
    tui/platforms.py
    ❯❱ opt.opengrep-rules.python.lang.maintainability.return-not-in-function
          `return` only makes sense inside a function
                                                     
          100┆ subject=lambda s: s["org"],
            ⋮┆----------------------------------------
          123┆ subject=lambda s: s["group"],
            ⋮┆----------------------------------------
          157┆ subject=lambda s: s["profile"] or "default",

results uploaded