Trying to configure my codeql.yml to ignore paths in the codeql scan. #13977
Replies: 3 comments 1 reply
-
There are a number of properties for the A configuration file is a yaml document containing properties like |
Beta Was this translation helpful? Give feedback.
-
According to the docs, If you are using another language, then you should remove the |
Beta Was this translation helpful? Give feedback.
-
I am not using auto-build. Code Scanning Tools still lists all .cs files in repo even though some of those are for testing and should not be scanned. It says 80% of .cs files are scanned.
Ultimately I'd like ability to exclude root\testing dir or something so we can see 100% Code Coverage. |
Beta Was this translation helpful? Give feedback.
-
I would like to know how to configure my codeql.yml Action to ignore various folders as part of the codeql scan. My language stack is 'Python' and 'Javascript'. I;ve tried the paths-ignore: at the root of my yaml just under the name: attribute. That causes the yaml to NOT parse.
I've also tried the:
uses: github/codeql-action/analyze@v2
with:
queries: security-extended,security-and-quality
ignore_paths: sandbox,test-apps
That allows the scan to run however I get a warning that the ignore_paths is not a valid property and is being ignored.
Here is the warning I get...
Analyze (javascript)Unexpected input(s) 'queries', 'ignore_paths', valid inputs are ['check_name', 'output', 'upload', 'cleanup-level', 'ram', 'add-snippets', 'skip-queries', 'threads', 'checkout_path', 'ref', 'sha', 'category', 'upload-database', 'wait-for-processing', 'token', 'matrix', 'expect-error']
So, I am stumped and need a little bump/nudge in the right direction.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions