apache / apache/cloudstack

Use separate CodeQL workflow files for each language

Offen
#11,655 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component:github-actions long-term-plan status:Help-wanted
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.4k
Ø Merge
6 T. 19 Std.
Gemergte PRs (30 T.)
32

Beschreibung

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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit .github/workflows/codeql-analysis.yml und der Diskussion aus Pull Request 11300. Ermittle die derzeit abgedeckten Sprachen und die Dateipfade, die jeweils die entsprechende Prüfung auslösen sollten. Die Aufgabe ist abgeschlossen, wenn jede Sprache über eine eigene CodeQL-Workflow-Datei mit geeigneten Pfaden und sprachspezifischer Konfiguration verfügt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions, java, python
Bereich
ci-cd, security
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.