GitHubSecurityLab / gh-mrva

Run CodeQL queries at scale using Multi-Repository Variant Analysis (MRVA)
MIT License
49 stars 3 forks source link

cannot unmarshal number into Go value of type []string #9

Open Sim4n6 opened 1 month ago

Sim4n6 commented 1 month ago

The use of database.json as

{
  "version": 1,
  "databases": {
    "variantAnalysis": {
      "repositoryLists": [
        {
          "name": "aaa-list",
          "repositories": ["sim4n6/aaa"]
        }
      ],
      "owners": [],
      "repositories": []
    }
  },
  "selected": {
    "kind": "variantAnalysisUserDefinedList",
    "listName": "aaa-list"
  }
}

in the command :

mv linux-amd64 gh-mrva
chmod +x gh-mrva
./gh-mrva submit --language cpp --session mirva-session-1 \
                                                        --list aaa-list                                    \
                                                        --query ./Queries/mine/query.ql
Resolving aaa-list repositories from /home/sim4n6/Workspace/database.json
2024/08/09 10:55:40 json: cannot unmarshal number into Go value of type []string

The issue is related to the structure of the json file ? version maybe removed ?

Sim4n6 commented 1 month ago

Maybe I should go. With

# Install 
gh extension install .

# Sanity check
gh mrva -h