Use separate CodeQL workflow files for each language
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 32
説明
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_
コントリビューションガイド
調査の方向性
.github/workflows/codeql-analysis.yml と pull request 11300 の議論から始めてください。現在カバーされている言語と、それぞれのチェックをトリガーすべきファイルパスを特定してください。各言語に適切なパスと言語固有の設定を持つ独自の CodeQL ワークフローファイルがあれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, java, python
- 領域
- ci-cd, security
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100