Newly introduced findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-571): [#def1]
/usr/share/go-fdo-server/fdo-utils.sh:122:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  120|     local response
#  121|     response=$(curl --fail --verbose --silent --insecure -w "HTTP_STATUS:%{http_code}" "${owner_url}/api/v1/ownerinfo" 2>/dev/null)
#  122|->   local http_status=$(echo "$response" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
#  123|     local body=$(echo "$response" | sed 's/HTTP_STATUS:[0-9]*$//')
#  124|     

Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/usr/share/go-fdo-server/fdo-utils.sh:123:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  121|     response=$(curl --fail --verbose --silent --insecure -w "HTTP_STATUS:%{http_code}" "${owner_url}/api/v1/ownerinfo" 2>/dev/null)
#  122|     local http_status=$(echo "$response" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
#  123|->   local body=$(echo "$response" | sed 's/HTTP_STATUS:[0-9]*$//')
#  124|     
#  125|     # Return empty string if not found (404) or any error, otherwise return body

Scan Properties

analyzer-version-clippy1.91.1
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.91.1
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-77.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namego-fdo-server-0.0.3-1.20251209125027598431.main.0.g9cba4db
diffbase-store-results-to/tmp/tmpbx1ljuue/go-fdo-server-0.0.3-1.20251209125027598431.main.0.g9cba4db.tar.xz
diffbase-time-created2025-12-09 16:00:17
diffbase-time-finished2025-12-09 16:02:50
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpbx1ljuue/go-fdo-server-0.0.3-1.20251209125027598431.main.0.g9cba4db.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpbx1ljuue/go-fdo-server-0.0.3-1.20251209125027598431.main.0.g9cba4db.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-77.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namego-fdo-server-0.0.3-1.20251209155212748206.pr130.4.gc9c3958
store-results-to/tmp/tmp5fjhvh0w/go-fdo-server-0.0.3-1.20251209155212748206.pr130.4.gc9c3958.tar.xz
time-created2025-12-09 16:03:05
time-finished2025-12-09 16:05:09
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp5fjhvh0w/go-fdo-server-0.0.3-1.20251209155212748206.pr130.4.gc9c3958.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp5fjhvh0w/go-fdo-server-0.0.3-1.20251209155212748206.pr130.4.gc9c3958.src.rpm'
tool-versioncsmock-3.8.3.20251124.152119.g92ed7a6-1.el9