jfrog / frogbot

🐸 Scans your Git repository with JFrog Xray for security vulnerabilities. 🤖
https://docs.jfrog-applications.jfrog.io/
Apache License 2.0
289 stars 61 forks source link

Python files are excluded during frogbot PR Scan #642

Open vinodhini-devops opened 4 months ago

vinodhini-devops commented 4 months ago

Describe the bug

I have python files and while running frogbot, those files are excluded.

21:36:04 [Debug] The path '/tmp/jfrog.cli.temp.-1708407363-3912552052/smaq/integration-tests/test_kill_relaunch_procs_smaq.py' is excluded

Current behavior

I have python files and while running frogbot, those files are excluded.

21:36:04 [Debug] The path '/tmp/jfrog.cli.temp.-1708407363-3912552052/smaq/integration-tests/test_kill_relaunch_procs_smaq.py' is excluded

Reproduction steps

No response

Expected behavior

No response

JFrog Frogbot version

Frogbot version: 2.19.9

Package manager info

No package manager

Git provider

Azure DevOps

JFrog Frogbot configuration yaml file

steps:

included comment

Operating system type and version

ubuntu 18.04

JFrog Xray version

No response

eranturgeman commented 4 months ago

Hello @vinodhini-devops and thank you for using Frogbot! The issue you reported is in fact not a bug, but rather an intended behavior. There is a default exclude pattern for Frogbot if you don't set your own excluded pattern using JF_PATH_EXCLUSIONS in frogbot-config.yml. The default pattern is: .git;node_modules;target;venv;test since the file you describe has the word 'test' in it and we have it as a regexp in our default pattern- this file is intentionally excluded. If you want to avoid this exclusion you need to set your own exclude pattern (can be empty). This suppose to fix you issue and Ill be happy to hear if it actually did. If not please feel free to leave another comment here

eranturgeman commented 1 month ago

Hello @vinodhini-devops Did the above answer helped resolving your issue? if so- can I close this ticket?