This basically builds and scans the code for known security issues. You get a green check mark if it succeeds to build and finds no issues.
It emails you if build fails.
Example of my codeql-analysis.yml for CleanPNG
You'd need to setup the build script as autobuild won't work as our project is setup. It'd be similar to how CleanPNG is setup
https://github.com/Sebanisu/CleanPNG/blob/master/.github/workflows/codeql-analysis.yml
But you'd need to pass arguments to msbuild to tell it what to build as DirectX or windows only code shouldn't compile on linux. Default no arguments seems to build everything in sln.
I can set it up but it'd email you, each time I fail to do it correctly :P
Article
https://devblogs.microsoft.com/cppblog/code-scanning-with-github-actions/
Link to enable.
https://github.com/MaKiPL/OpenVIII-monogame/new/master?filename=.github%2Fworkflows%2Fcodeql-analysis.yml&workflow_template=codeql&code_scanning
Reason
This basically builds and scans the code for known security issues. You get a green check mark if it succeeds to build and finds no issues. It emails you if build fails.
Example of my codeql-analysis.yml for CleanPNG
You'd need to setup the build script as autobuild won't work as our project is setup. It'd be similar to how CleanPNG is setup https://github.com/Sebanisu/CleanPNG/blob/master/.github/workflows/codeql-analysis.yml But you'd need to pass arguments to msbuild to tell it what to build as DirectX or windows only code shouldn't compile on linux. Default no arguments seems to build everything in sln.
I can set it up but it'd email you, each time I fail to do it correctly :P