Title: Workflow failing with ".Exit code was 32 and last log line was: CodeQL detected code written in Go but could not process any of it." · Issue #2186 · github/codeql-action · GitHub
Open Graph Title: Workflow failing with ".Exit code was 32 and last log line was: CodeQL detected code written in Go but could not process any of it." · Issue #2186 · github/codeql-action
X Title: Workflow failing with ".Exit code was 32 and last log line was: CodeQL detected code written in Go but could not process any of it." · Issue #2186 · github/codeql-action
Description: We are using a multi module Golang repository with Go Workspace. CodeQL default workflow settings were working fine with no issues. Suddenly, with no changes in repo structure, it now fails with CodeQL detected code written in Go but cou...
Open Graph Description: We are using a multi module Golang repository with Go Workspace. CodeQL default workflow settings were working fine with no issues. Suddenly, with no changes in repo structure, it now fails with Co...
X Description: We are using a multi module Golang repository with Go Workspace. CodeQL default workflow settings were working fine with no issues. Suddenly, with no changes in repo structure, it now fails with Co...
Opengraph URL: https://github.com/github/codeql-action/issues/2186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Workflow failing with \".Exit code was 32 and last log line was: CodeQL detected code written in Go but could not process any of it.\"","articleBody":"We are using a multi module Golang repository with Go [Workspace](https://go.dev/ref/mod#workspaces). CodeQL default workflow settings were working fine with no issues. Suddenly, with no changes in repo structure, it now fails with `CodeQL detected code written in Go but could not process any of it`.\r\n\r\nAlso, troubleshooting steps [here](https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/no-source-code-seen-during-build) did not fix it.\r\n\r\nAutobuild step and Init seems to be working fine but Analysis started failing all the time.\r\n\r\nrepo: https://github.com/threefoldtech/tfgrid-sdk-go\r\nexample workflow: https://github.com/threefoldtech/tfgrid-sdk-go/actions/runs/8079246055/job/22073247305\r\n\u003cdetails\u003e\r\n\u003csummary\u003elogs:\u003c/summary\u003e\r\n\r\n```\r\nRun github/codeql-action/analyze@v3\r\n with:\r\n category: /language:go\r\n output: ../results\r\n upload: always\r\n cleanup-level: brutal\r\n add-snippets: false\r\n skip-queries: false\r\n checkout_path: /home/runner/work/tfgrid-sdk-go/tfgrid-sdk-go\r\n upload-database: true\r\n wait-for-processing: true\r\n token: ***\r\n matrix: {\r\n \"language\": \"go\"\r\n }\r\n expect-error: false\r\n env:\r\n CODE_SCANNING_REF: refs/pull/867/head\r\n CODE_SCANNING_IS_ANALYZING_DEFAULT_BRANCH: false\r\n CODE_SCANNING_WORKFLOW_FILE: H4sIAAAAAAAA/6xUTW/bOBC961cMvEGye5B82PYiIEBUx07dGnYbtwjaIhBoaSSzkUiHHMpVXP/3gqKUxo2T+NCbOPP45uM9UbASQ+gNZIofJz1PGeG70NFmAzmnpVkEWKGggIuVIR0kMsVYJ0wILvJYGRFbPGy3nhQhpLVgJU8877tc6NADYIIV9R3aTwDHHLlQE1FGaN9eNAsjyPgFI9TUpFaoSq41l0K72wAsoeYIClnaxhIpCAXtBjUmRnGq/aZ1HcJacXIVLZ4Lg74UPiolVQgZK7RLalKMMK+7ghnjhZ8xTQ9BACUjxX90IICCidywHEP4BrmE6yaBouoQg9n5MJ4Poul0PL2IL4ejg9eLmd3sPpbxPI6m0eTLV3s4H46iz5NP8ZvLaDp4eyg717GTxx5SzJgpKF4oJpLlU1WvZpfvR5PZVTwaT4aH1llLdZMVch1nvMCOWROuWmH91hiDJSY30hAoXEnNSaq6bcJo1GEnfz9pcWfVK2+HYCw4cVbwOwRn6J3rrtG+7e228B1ZnwtOZ9X/LXDNaflYVu0GdaoHXfT3igBuDSpucb0e/APnbpVNtAZtOuu19st4HsLP+wgALRUy8kuZYqGth+B6d65Bc8kofHkehVoWFfooKq6kKFE8GI+n9i95BHh2+Gdn7xqcI5kVXMi9cmmb9HN5Vr3u+sjCR4ynp3CSyxM4PoZMyfLdfDb9t/FIsKfjQBpqjPYg9l+QtGtitm6Qy6BCZd+PvfPl0m/TbsK/XdSuaGdHkSG5MLxIXxaRdVAr3Q7JB1SZVGVrb/eUaq4PoHSP7lNWT+yzJ1UdQq9/r/zRZvOHStttz/sVAAD//7BdVxsyBgAA\r\n CODEQL_ACTION_FEATURE_MULTI_LANGUAGE: false\r\n CODEQL_ACTION_FEATURE_SANDWICH: false\r\n CODEQL_ACTION_FEATURE_SARIF_COMBINE: true\r\n CODEQL_ACTION_FEATURE_WILL_UPLOAD: true\r\n CODEQL_ACTION_VERSION: 3.24.5\r\n JOB_RUN_UUID: b4f685d9-0748-425b-8025-3f1f4bc397e4\r\n CODEQL_ACTION_INIT_HAS_RUN: true\r\n CODEQL_ACTION_ANALYSIS_KEY: dynamic/github-code-scanning/codeql:analyze\r\n CODEQL_WORKFLOW_STARTED_AT: 2024-02-28T10:59:00.858Z\r\n CODEQL_ACTION_GO_BINARY: /home/runner/work/_temp/codeql-action-go-tracing/bin/go\r\n CODEQL_RAM: 14567\r\n CODEQL_THREADS: 4\r\n CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION: true\r\n CODEQL_SCRATCH_DIR: /home/runner/work/_temp/codeql_databases/working\r\n CODEQL_DIST: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql\r\n CODEQL_PLATFORM: linux64\r\n CODEQL_PLATFORM_DLL_EXTENSION: .so\r\n CODEQL_JAVA_HOME: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/java\r\n CODEQL_EXTRACTOR_GO_ROOT: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/go\r\n CODEQL_EXTRACTOR_GO_WIP_DATABASE: /home/runner/work/_temp/codeql_databases/go\r\n CODEQL_EXTRACTOR_GO_DIAGNOSTIC_DIR: /home/runner/work/_temp/codeql_databases/go/diagnostic/extractors/go\r\n CODEQL_EXTRACTOR_GO_LOG_DIR: /home/runner/work/_temp/codeql_databases/go/log\r\n CODEQL_EXTRACTOR_GO_SCRATCH_DIR: /home/runner/work/_temp/codeql_databases/go/working\r\n CODEQL_EXTRACTOR_GO_TRAP_DIR: /home/runner/work/_temp/codeql_databases/go/trap/go\r\n CODEQL_EXTRACTOR_GO_SOURCE_ARCHIVE_DIR: /home/runner/work/_temp/codeql_databases/go/src\r\n SEMMLE_HANDLE_STATIC_BINARIES: true\r\n CODEQL_EXTRACTOR_GO_THREADS: 4\r\n CODEQL_EXTRACTOR_GO_RAM: 14567\r\n CODEQL_TRACER_LOG: /home/runner/work/_temp/codeql_databases/log/build-tracer.log\r\n CODEQL_TRACER_DIAGNOSTICS_DIR: /home/runner/work/_temp/codeql_databases/diagnostic/tracer\r\n CODEQL_TRACER_LANGUAGES: go\r\n SEMMLE_PRELOAD_libtrace: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/${LIB}_${PLATFORM}_trace.so\r\n SEMMLE_PRELOAD_libtrace32: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/lib32trace.so\r\n SEMMLE_PRELOAD_libtrace64: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/lib64trace.so\r\n CODEQL_RUNNER: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/runner\r\n LD_PRELOAD: /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/tools/linux64/${LIB}_${PLATFORM}_trace.so\r\n CODEQL_ACTION_DID_AUTOBUILD_GOLANG: true\r\n CODEQL_ACTION_AUTOBUILD_DID_COMPLETE_SUCCESSFULLY: true\r\nWhile resolving threads, found a cgroup CPUs file with 4 CPUs in /sys/fs/cgroup/cpuset.cpus.effective.\r\n/opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/codeql version --format=json\r\n{\r\n \"productName\" : \"CodeQL\",\r\n \"vendor\" : \"GitHub\",\r\n \"version\" : \"2.16.3\",\r\n \"sha\" : \"89973abb6e1d3083dfb8426eb0e210df19ca36be\",\r\n \"branches\" : [\r\n \"codeql-cli-2.16.3\"\r\n ],\r\n \"copyright\" : \"Copyright (C) 2019-2024 GitHub, Inc.\",\r\n \"unpackedLocation\" : \"/opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql\",\r\n \"configFileLocation\" : \"/home/runner/.config/codeql/config\",\r\n \"configFileFound\" : false,\r\n \"features\" : {\r\n \"analysisSummaryV2Option\" : true,\r\n \"buildModeOption\" : true,\r\n \"bundleSupportsIncludeDiagnostics\" : true,\r\n \"featuresInVersionResult\" : true,\r\n \"indirectTracingSupportsStaticBinaries\" : false,\r\n \"supportsPython312\" : true,\r\n \"mrvaPackCreate\" : true,\r\n \"threatModelOption\" : true,\r\n \"traceCommandUseBuildMode\" : true,\r\n \"v2ramSizing\" : true,\r\n \"mrvaPackCreateMultipleQueries\" : true,\r\n \"setsCodeqlRunnerEnvVar\" : true\r\n }\r\n}\r\nFinalizing go\r\n /opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/codeql database finalize --finalize-dataset --threads=4 --ram=14567 /home/runner/work/_temp/codeql_databases/go\r\n CodeQL detected code written in Go but could not process any of it. Review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build .\r\n Error: Encountered a fatal error while running \"/opt/hostedtoolcache/CodeQL/2.16.3/x64/codeql/codeql database finalize --finalize-dataset --threads=4 --ram=14567 /home/runner/work/_temp/codeql_databases/go\". Exit code was 32 and last log line was: CodeQL detected code written in Go but could not process any of it. Review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build . See the logs for more details.\r\n```\r\n\u003c/details\u003e\r\n\r\nI am not sure where the issue is since we are not using custom building and Autobuild step seems to be working fine. It was also working with no errors before.","author":{"url":"https://github.com/AbdelrahmanElawady","@type":"Person","name":"AbdelrahmanElawady"},"datePublished":"2024-03-07T12:24:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2186/codeql-action/issues/2186"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a735c173-ef66-ab15-3d55-cb3f0349f4e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C13A:2DFBD1:59C425:834DC8:6A4E0A9E |
| html-safe-nonce | ca1522af5cc5aa236cb0c0ec60e619450aaf7bcc13ce2ee87452a0ea01ee3a3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTNBOjJERkJEMTo1OUM0MjU6ODM0REM4OjZBNEUwQTlFIiwidmlzaXRvcl9pZCI6IjYzODA5NzYxODEyMjc2ODY1NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c7c0bab75bba845c5753f0da6fdc0a5643150576c1c0d055fefd85b4754c3f3 |
| hovercard-subject-tag | issue:2173745203 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/2186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61c9e8e66acea6a0921cb18929f55e007b43e78abd9a250b7f58ca8a43db7821/github/codeql-action/issues/2186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61c9e8e66acea6a0921cb18929f55e007b43e78abd9a250b7f58ca8a43db7821/github/codeql-action/issues/2186 |
| og:image:alt | We are using a multi module Golang repository with Go Workspace. CodeQL default workflow settings were working fine with no issues. Suddenly, with no changes in repo structure, it now fails with Co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbdelrahmanElawady |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width