Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Setup Code Scanning? #189

@Sebanisu

Description

@Sebanisu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions