CodeQL Github Action Deprecated

CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For more information, see