github / github/codeql

Update from Go 1.20 to 1.22 causes CodeQL to no longer detect that we built Go code

オープン
#17,526 コメント 6 件 リアクション 0 件 担当者 1 名 @mbg が担当を希望しています GitHub で見る
Go question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

We use CodeQL through GitHub Actions and had an issue with CodeQL no longer finding Go code when we updated Go from 1.20 to 1.22. Our build actually builds the Go toolset itself, so it's probably a little unusual.

Broken run with debug logs: https://github.com/microsoft/go/actions/runs/10920221364/job/30391782040

> CodeQL detected code written in Go but this run didn't build any of it

Example success with debug logs: https://github.com/microsoft/go/actions/runs/10934919945/job/30391982309

Both use:

```
"productName" : "CodeQL",
"vendor" : "GitHub",
"version" : "2.18.4",
"sha" : "9c5e434eb23805aa8a8574b87b24eae476ca8615",
"branches" : [
"codeql-cli-2.18.4"
],
```

The PR that triggered the broken run updated Go from 1.20.6 to 1.22.6. The example success *may* include some other changes, and I can produce a cleaner example if necessary, but I don't expect that anything important changed.

* Seemed related to this issue at first, but it was fixed and we still see this: https://github.com/github/codeql-action/issues/2467

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。