Excluding filepaths from CodeQL CLI at analysis
- Langage dominant
- CodeQL
- Étoiles
- 10.1k
- Forks
- 2.1k
- Merge moyen
- 2 j 15 h
- PR mergées (30 j)
- 141
Description
**Excluding filepaths from CodeQL CLI at analysis**
Hi,
I want to know if there is a way to exclude certain files and directories from CodeQL analysis (_**after the database has been built**_). Our last resort would be filtering results out of the SARIF **after** analysis, but we want to know if there is a way to do it **at** analysis time.
Someone on my team noticed a query that appears to have some file exclusion happening:
https://github.com/github/codeql/blob/main/javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/extraction/Exclusions.qll
Although I don't know if this would really be relevant to what we're trying to do. We are running queries from query packs specified in the CLI, something like this:
`codeql database analyze ${DATABASE_NAME} ${QUERYPACKS}`
Is there any way to apply a file exclusion query (similar to the JavaScript one linked above) on top of the query pack, or is this infeasible?
Thanks!
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la requête JavaScript Exclusions.qll liée et la commande codeql database analyze utilisant des query packs. Déterminez si les exclusions de fichiers et de répertoires peuvent être appliquées après la création de la base de données et pendant l’analyse, plutôt que de filtrer uniquement les résultats SARIF. Le travail est considéré comme terminé lorsque l’approche prise en charge a été établie ou qu’il a été documenté que cela n’est pas réalisable.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- cli, security, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100