SN=10 ./gh-mrva submit --language cpp --session mirva-session-$SN \ --list mirva-list \ --query /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql >& log-$SN.out & tail -f log-$SN.out Resolving mirva-list repositories from /Users/hohn/local/gh-mrva/databases.json Submitting 1 queries for 1 repositories Generating query pack for /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql Resolving query id for /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql Metadata: { "name" : "pickfun", "description" : "pick function from FlatBuffers", "kind" : "problem", "id" : "cpp-flatbuffer-func", "problem.severity" : "warning" } QLPack exists, stripping all other queries from /Users/hohn/local/gh-mrva Preparing stripped QLPack in /var/folders/bk/dt0jx9f92zq876lmm3f2dpk40000gn/T/query-pack-1881677116 Fixing QLPack in /var/folders/bk/dt0jx9f92zq876lmm3f2dpk40000gn/T/query-pack-1881677116 Installing QLPack dependencies Compiling and bundling the QLPack (This may take a while) Generated encoded bundle for /Users/hohn/local/gh-mrva/FlatBuffersFunc.ql (cpp-flatbuffer-func) 2024/02/08 14:54:14 >> POST https://api.github.com/repos/hohn/mirva-controller/code-scanning/codeql/variant-analyses 2024/02/08 14:54:14 >> Request body: {"repositories":["google/flatbuffers"],"language":"cpp","query_pack":"H4sIAAAA...","action_repo_ref":"main"} from body := struct { Repositories []string `json:"repositories"` Language string `json:"language"` Pack string `json:"query_pack"` Ref string `json:"action_repo_ref"` } from encodedBundle from id, err := utils.SubmitRun(controller, language, chunk, encodedBundle) from encodedBundle, queryId, err := utils.GenerateQueryPack(query, language, additionalPacks) from bundlePath := filepath.Join(filepath.Dir(queryPackDir), fmt.Sprintf("qlpack-%s-generated.tgz", uuid.New().String())) ... args = []string{"pack", "bundle", "-o", bundlePath, queryPackDir} ... bundleBase64 := base64.StdEncoding.EncodeToString(bundleBytes) return bundleBase64, queryId, nil So it's a base64 encoded gzipped tar file. In reverse: base64 -d < foo1 | gunzip | tar t "query_pack":... is 0:$ base64 -d < foo1 | gunzip | tar t|head -20 FlatBuffersFunc.ql LICENSE qlpack.yml codeql-pack.lock.yml README.md .codeql/libraries/codeql/dataflow/0.1.5/qlpack.yml .codeql/libraries/codeql/dataflow/0.1.5/CHANGELOG.md .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/TaintTracking.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/test/InlineFlowTest.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/internal/DataFlowImplConsistency.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/internal/DataFlowImpl.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/internal/DataFlowImplCommon.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/VariableCapture.qll .codeql/libraries/codeql/dataflow/0.1.5/codeql/dataflow/DataFlow.qll .codeql/libraries/codeql/tutorial/0.2.5/qlpack.yml .codeql/libraries/codeql/tutorial/0.2.5/CHANGELOG.md .codeql/libraries/codeql/tutorial/0.2.5/tutorial.qll .codeql/libraries/codeql/util/0.2.5/qlpack.yml .codeql/libraries/codeql/util/0.2.5/CHANGELOG.md .codeql/libraries/codeql/util/0.2.5/codeql/util/Location.qll ... 0:$ base64 -d < foo1 | gunzip | tar t| tail -5 .codeql/precompiled/271765fqs2kb5d2cdumjptd98s9.bytes.qlx .codeql/precompiled/629134s1rogmnmbe22m1da10kke.bytes.qlx .codeql/precompiled/b4c9a2bili3cn98q4a64ldecog2.bytes.qlx .codeql/precompiled/09f73besrcbo1ghd85ondjlsv80.bytes.qlx FlatBuffersFunc.qlx 2024/02/08 14:54:17 << 201 https://api.github.com/repos/hohn/mirva-controller/code-scanning/codeql/variant-analyses 2024/02/08 14:54:17 >> Response body: { "id": 8985, "controller_repo": { "id": 747492529, "node_id": "R_kgDOLI3UsQ", "name": "mirva-controller", "full_name": "hohn/mirva-controller", "private": false, "owner": { "login": "hohn", "id": 2253228, "node_id": "MDQ6VXNlcjIyNTMyMjg=", "avatar_url": "https://avatars.githubusercontent.com/u/2253228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hohn", "html_url": "https://github.com/hohn", "followers_url": "https://api.github.com/users/hohn/followers", "following_url": "https://api.github.com/users/hohn/following{/other_user}", "gists_url": "https://api.github.com/users/hohn/gists{/gist_id}", "starred_url": "https://api.github.com/users/hohn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hohn/subscriptions", "organizations_url": "https://api.github.com/users/hohn/orgs", "repos_url": "https://api.github.com/users/hohn/repos", "events_url": "https://api.github.com/users/hohn/events{/privacy}", "received_events_url": "https://api.github.com/users/hohn/received_events", "type": "User", "site_admin": true }, "html_url": "https://github.com/hohn/mirva-controller", "description": "Controller for MRVA", "fork": false, "url": "https://api.github.com/repos/hohn/mirva-controller", "forks_url": "https://api.github.com/repos/hohn/mirva-controller/forks", "keys_url": "https://api.github.com/repos/hohn/mirva-controller/keys{/key_id}", "collaborators_url": "https://api.github.com/repos/hohn/mirva-controller/collaborators{/collaborator}", "teams_url": "https://api.github.com/repos/hohn/mirva-controller/teams", "hooks_url": "https://api.github.com/repos/hohn/mirva-controller/hooks", "issue_events_url": "https://api.github.com/repos/hohn/mirva-controller/issues/events{/number}", "events_url": "https://api.github.com/repos/hohn/mirva-controller/events", "assignees_url": "https://api.github.com/repos/hohn/mirva-controller/assignees{/user}", "branches_url": "https://api.github.com/repos/hohn/mirva-controller/branches{/branch}", "tags_url": "https://api.github.com/repos/hohn/mirva-controller/tags", "blobs_url": "https://api.github.com/repos/hohn/mirva-controller/git/blobs{/sha}", "git_tags_url": "https://api.github.com/repos/hohn/mirva-controller/git/tags{/sha}", "git_refs_url": "https://api.github.com/repos/hohn/mirva-controller/git/refs{/sha}", "trees_url": "https://api.github.com/repos/hohn/mirva-controller/git/trees{/sha}", "statuses_url": "https://api.github.com/repos/hohn/mirva-controller/statuses/{sha}", "languages_url": "https://api.github.com/repos/hohn/mirva-controller/languages", "stargazers_url": "https://api.github.com/repos/hohn/mirva-controller/stargazers", "contributors_url": "https://api.github.com/repos/hohn/mirva-controller/contributors", "subscribers_url": "https://api.github.com/repos/hohn/mirva-controller/subscribers", "subscription_url": "https://api.github.com/repos/hohn/mirva-controller/subscription", "commits_url": "https://api.github.com/repos/hohn/mirva-controller/commits{/sha}", "git_commits_url": "https://api.github.com/repos/hohn/mirva-controller/git/commits{/sha}", "comments_url": "https://api.github.com/repos/hohn/mirva-controller/comments{/number}", "issue_comment_url": "https://api.github.com/repos/hohn/mirva-controller/issues/comments{/number}", "contents_url": "https://api.github.com/repos/hohn/mirva-controller/contents/{+path}", "compare_url": "https://api.github.com/repos/hohn/mirva-controller/compare/{base}...{head}", "merges_url": "https://api.github.com/repos/hohn/mirva-controller/merges", "archive_url": "https://api.github.com/repos/hohn/mirva-controller/{archive_format}{/ref}", "downloads_url": "https://api.github.com/repos/hohn/mirva-controller/downloads", "issues_url": "https://api.github.com/repos/hohn/mirva-controller/issues{/number}", "pulls_url": "https://api.github.com/repos/hohn/mirva-controller/pulls{/number}", "milestones_url": "https://api.github.com/repos/hohn/mirva-controller/milestones{/number}", "notifications_url": "https://api.github.com/repos/hohn/mirva-controller/notifications{?since,all,participating}", "labels_url": "https://api.github.com/repos/hohn/mirva-controller/labels{/name}", "releases_url": "https://api.github.com/repos/hohn/mirva-controller/releases{/id}", "deployments_url": "https://api.github.com/repos/hohn/mirva-controller/deployments" }, "actor": { "login": "hohn", "id": 2253228, "node_id": "MDQ6VXNlcjIyNTMyMjg=", "avatar_url": "https://avatars.githubusercontent.com/u/2253228?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hohn", "html_url": "https://github.com/hohn", "followers_url": "https://api.github.com/users/hohn/followers", "following_url": "https://api.github.com/users/hohn/following{/other_user}", "gists_url": "https://api.github.com/users/hohn/gists{/gist_id}", "starred_url": "https://api.github.com/users/hohn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hohn/subscriptions", "organizations_url": "https://api.github.com/users/hohn/orgs", "repos_url": "https://api.github.com/users/hohn/repos", "events_url": "https://api.github.com/users/hohn/events{/privacy}", "received_events_url": "https://api.github.com/users/hohn/received_events", "type": "User", "site_admin": true }, "query_language": "cpp", "query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/8985/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20240208%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240208T225421Z&X-Amz-Expires=3600&X-Amz-Signature=732819ba6d72cfd402c4c491b9e64b6e324fd781d11560fccbdf8645e827a252&X-Amz-SignedHeaders=host", "created_at": "2024-02-08T22:54:21Z", "updated_at": "2024-02-08T22:54:21Z", "status": "in_progress", "skipped_repositories": { "access_mismatch_repos": { "repository_count": 0, "repositories": [] }, "not_found_repos": { "repository_count": 0, "repository_full_names": [] }, "no_codeql_db_repos": { "repository_count": 0, "repositories": [] }, "over_limit_repos": { "repository_count": 0, "repositories": [] } } } Done!