@gregkh @captainepoch this is probably only visible to repo admins (because security issues shouldn't be disclosed publicly or something). also i did a quick web search and found the docs https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning
@gregkh @captainepoch oh here is where it got configured https://github.com/gregkh/usbutils/commit/15f33f0dc49ec58c8761fa33da2afc0486164610
As it turns out that “code scanning” isn’t public, here’s the error message that github is putting up saying that meson temp build files are security problems:
build/meson-private/tmpzhj7u8eq/testfile.c:2 Test
Poor global variable name 'i'. Prefer longer, descriptive names for globals (eg. kMyGlobalConstant, not foo).
Rule ID cpp/short-global-name
Description
This rule finds global variables which have a name of length three characters or less. It is particularly important to use descriptive names for global variables. Use of a clear naming convention for global variables helps document their use, avoids pollution of the namespace and reduces the risk of shadowing with local variables.
@gregkh your last toot showed errors in meson generated files so maybe delete the Build step from the codeql workflow? i'm not sure why exactly you'd want that in static analysis. though there must be some reason the original author put it there so i'm not too sure either way.
@gregkh wrong paths-ignore! in fact i don't think that yaml dict takes paths-ignore at all. it goes in the with: under initialize codeql, but not directly, instead you have to have a config: key whose value is a **string** containing yaml containing paths-ignore https://github.com/github/codeql-action/blob/a1695c562bbfa68dc5ab58c9b5e9f616b52bf5be/init/action.yml#L80
@gregkh something like the filter out section should help perhaps https://github.com/rauc/rauc/blob/master/.github/workflows/codeql.yml
@gregkh you are welcome.
Admittedly there are some very long/repetitive fragments that can be factored out. But at least it's easier now to look for genuine issues.