apache / apache/cloudstack

Use separate CodeQL workflow files for each language

Aperta
#11,655 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
component:github-actions long-term-plan status:Help-wanted
Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 19h
PR unite (30g)
32

Descrizione

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_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con .github/workflows/codeql-analysis.yml e con la discussione della pull request 11300. Identifica i linguaggi attualmente coperti e i percorsi dei file che dovrebbero attivare ciascun controllo. Il lavoro è completato quando ogni linguaggio dispone di un proprio file di workflow CodeQL con i percorsi appropriati e una configurazione specifica per il linguaggio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github-actions, java, python
Ambito
ci-cd, security
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.