Use separate CodeQL workflow files for each language
- Linguagem predominante
- Java
- Estrelas
- 3.1k
- Forks
- 1.4k
- Merge médio
- 6d 19h
- PRs com merge (30d)
- 32
Descrição
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_
Guia de contribuição
Direção de pesquisa
Comece com .github/workflows/codeql-analysis.yml e com a discussão do pull request 11300. Identifique as linguagens atualmente abrangidas e os caminhos de arquivos que devem disparar cada verificação. O trabalho estará concluído quando cada linguagem tiver seu próprio arquivo de workflow do CodeQL, com os caminhos apropriados e uma configuração específica da linguagem.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- github-actions, java, python
- Domínio
- ci-cd, security
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100