Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
CodeQL 関連 workflow だけ、ubuntu-22.04 を使っている。他の reusable workflow は全て ubuntu-latest。
Ubuntu のバージョンを固定して、セキュリティや信頼性を高めようとしたのだと思う。
経験上、GitHub Actions で Ubuntu バージョンを固定しなくて壊れたことはないし、自動アップデートの仕組みもないと思うので、ubuntu-latest に変更する。
動作確認
大丈夫そうです。
https://github.com/masutaka/sandbox/actions/runs/11101601135
参考
現在の ubuntu-latest は ubuntu-24.04 へのエイリアス。
https://github.com/actions/runner-images/tree/ce5aa1950d31fd67c0014160a0164005a3e7f43c
ubuntu-22.04 の End of Standard Support は 2027/04。
https://ubuntu.com/about/release-cycle