Not able to use config file for database creation command
- Langage dominant
- CodeQL
- Étoiles
- 10.1k
- Forks
- 2.1k
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 152
Description
** Our build process comprises of 4-5 commands so trying to use config file and use it in command but getting error as "Invalid property specified in the configuration file. Ignoring it and proceeding" **
as per [using-a-codeql-configuration-file](https://docs.github.com/en/code-security/codeql-cli/using-the-codeql-cli/specifying-command-options-in-a-codeql-configuration-file#using-a-codeql-configuration-file), does config file gets used internally by `codeql database create` without specifying `--codescanning-config` option ? Some internet sources talks about yaml-based config file as well and using it with `--codescanning-config` option, can you please clarify what's correct way to use config file?
I am trying this way :
`codeql database create --language=cpp --github-url=https://github.com/ --codescanning-config=../codeql-config.yml --source-root . db`
where codeql-config.yml file contents are like below :
```
name: My CodeQL Configuration
language: cpp
build:
- "./setup.sh "
- "bash -c "command""
- "./setup2.sh""
- "bash -c "command""
```
getting below error :
```
Invalid property specified in the configuration file. Ignoring it and proceeding.
A fatal error occurred: Query pack codeql/cpp-queries cannot be found. Check the spelling of the pack.
```
Specifying multiple commands works but that becomes not maintainable as commands are lengthy :
`codeql database create --command "cmd1" --command "cmd2" --command "cmd3" --command "cmd4" --language=cpp --github-url=https://github.com/ --source-root . db`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la documentation liée sur les fichiers de configuration CodeQL et par le fichier codeql-config.yml signalé, puis comparez ses propriétés aux options acceptées par `codeql database create`. Reproduisez la commande et l’avertissement concernant une propriété non valide à l’aide de la configuration présentée. Le travail est terminé lorsque le format de configuration pris en charge et la manière correcte de fournir plusieurs commandes de build sont clairement documentés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- yaml
- Domaine
- security
- Type d'issue
- Documentation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100