-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeQL for unity #11791
Comments
I don't have any first-hand knowledge of Unity, but Google tells me it uses C# as a programming language, which means you're in luck: CodeQL already understands C#. You'll need a way to build your project from a command line. If that is a standard We don't currently ship any queries that look specifically for unsafe uses of the Unity framework, but the generic C# queries would still apply, and would scan for problems with your use of the C# language itself, or, say, security implications of network transactions that you use the .NET APIs directly to do. It's not likely we will devote resources to making Unity-specific security queries in the near future, but we would welcome such queries as external contributions against this repository, from anyone who makes the effort to climb the (admittedly somewhat steep) learning curve. |
I second @Burnout156 it would be nice to have Unity Support or template flow Running CodeQL against a Unity Project out of the box results in Build Issues This error log is out of CodeQL git action
@hmakholm Unity requires a different build flow, a good example of this will be here https://game.ci/ |
Right, if our attempts to autobuild the project doesn't work, you'll have to provide your own build steps in place of it, as explicit workflow steps between the Unfortunately this does mean that the "default setup" for Code Scanning cannot be used and you need to explicitly check a custom workflow definition for CodeQL into the repo. |
Thanks for the help @ah1053, in fact it needs a different construction, and I still don't have enough skill to implement it |
@Burnout156 I think you will need your custom container and Unity Editor in that custom container with License to build. |
Using indirect tracing with csharp for Unity, causes compiler errors
android-build.log:
|
First congratulations to everyone for the CodeQL project, which has even helped me with web projects.
But my request is that you manage to make a version for the Unity game engine.
The text was updated successfully, but these errors were encountered: