apache / apache/cloudstack

Use separate CodeQL workflow files for each language

Ouverte
#11,655 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
component:github-actions long-term-plan status:Help-wanted
Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 19 h
PR mergées (30 j)
32

Description

Discussion below:

> Do we need to add more languages here?

Let us get this PR merged first before we add more languages and checks.

For example if we add the Java language to the matrix we may also need to implement "paths" or only run the Java CodeQL check when certain files change. These checks can sometimes take a while to run on the CI.

Also it is probably best to separate each language that we want to check into its own CodeQL workflow file and add all the "paths". For example:

- java-codeql-analysis.yml
- python-codeql-analysis.yml
- actions-codeql-analysis.yml
- etc

Using separate CodeQL workflow files for each language in a multi-language repository allows for tailored analysis and build processes. This approach is particularly useful when languages have different build requirements or when you want to apply specific queries or configurations to individual languages.

Our current analysis file:

https://github.com/apache/cloudstack/blob/main/.github/workflows/codeql-analysis.yml

_Originally posted by @jbampton in https://github.com/apache/cloudstack/pull/11300#discussion_r2352998006_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par .github/workflows/codeql-analysis.yml et la discussion de la pull request 11300. Identifiez les langages actuellement couverts ainsi que les chemins de fichiers qui doivent déclencher chaque vérification. Le travail est terminé lorsque chaque langage dispose de son propre fichier de workflow CodeQL avec les chemins appropriés et une configuration spécifique au langage.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github-actions, java, python
Domaine
ci-cd, security
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.