You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default the codeql task will scan the ENTIRE code base. Which is not what I want.
How can I configure Github advanced security to only scan one project? For example the front-end and backend folder for the green-app.
I tried setting the sources folder to the back-end folder. But then I'm not able to "reach" the front-end folder when I set the codeqlpathstoinclude parameter. When I try this:
(Following the docs: "The paths must be relative to the sourcesfolder where CodeQL is running, which defaults to the Build.SourcesDirectory pipeline environment variable. For example, to include the $(Build.SourcesDirectory)/app directory, set codeqlpathstoinclude: app rather than codeqlpathstoinclude: $(Build.SourcesDirectory)/app.")
I get:
Only found JavaScript or TypeScript files that were empty or contained syntax errors
Wildcards are also giving issues: apps/*/green-app/**/*
What am I doing wrong here? Any other way i can accomplish this?
The text was updated successfully, but these errors were encountered:
jketema
changed the title
CodeQL: Setting paths in Github Advanced Security for Devops
CodeQL: Setting paths in Github Advanced Security for Azure Devops
Dec 27, 2024
I've asked people knowledgeable about the Azure Devops setup to take a look at your question. Note that their response might be somewhat delayed, because many people have holidays around this time of year.
CSharp paths include/ignore filtering only works if you switch to none for buildtype , testing with your JS should still work though (docs). Otherwise CodeQL CSharp will scan everything that compiles between Init and Analyze steps.
I'm using Github Advanced Security in Azure devops in a monorepo. With the given folder structure:
By default the codeql task will scan the ENTIRE code base. Which is not what I want.
How can I configure Github advanced security to only scan one project? For example the front-end and backend folder for the green-app.
I tried setting the sources folder to the back-end folder. But then I'm not able to "reach" the front-end folder when I set the codeqlpathstoinclude parameter. When I try this:
(Following the docs: "The paths must be relative to the sourcesfolder where CodeQL is running, which defaults to the Build.SourcesDirectory pipeline environment variable. For example, to include the $(Build.SourcesDirectory)/app directory, set codeqlpathstoinclude: app rather than codeqlpathstoinclude: $(Build.SourcesDirectory)/app.")
I get:
Wildcards are also giving issues:
apps/*/green-app/**/*
What am I doing wrong here? Any other way i can accomplish this?
The text was updated successfully, but these errors were encountered: