apache / apache/cloudstack

Use separate CodeQL workflow files for each language

Abierto
#11,655 1 comentario 0 reacciones 0 asignados Ver en GitHub
component:github-actions long-term-plan status:Help-wanted
Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 19 h
PR fusionados (30 d)
32

Descripción

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_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con .github/workflows/codeql-analysis.yml y la discusión del pull request 11300. Identifica los lenguajes cubiertos actualmente y las rutas de archivos que deberían activar cada comprobación. Se considera terminado cuando cada lenguaje tiene su propio archivo de workflow de CodeQL con las rutas adecuadas y una configuración específica para el lenguaje.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
github-actions, java, python
Área
ci-cd, security
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.