As I've faced the same error and found the answer in this post, I'll keep some details here:
There is an Azure functions project. If I run the sourceguard-cli command in the folder where the python file (__init__.py) is located I fail (as well as if I specify the file name)
Directory: C:\Users\arazumov\Documents\Coding\Azure_09\funcPyTest\arPyTest
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 01.09.2020 21:29 316 function.json
-a---- 01.09.2020 21:29 25 sample.dat
-a---- 02.09.2020 8:44 624 __init__.py
PS C:\Users\arazumov\Documents\Coding\Azure_09\funcPyTest\arPyTest> sourceguard-cli.exe -src .
02-09-2020 09:18:15.400 SourceGuard Scan Started!
02-09-2020 09:18:15.845 Error: repository URL is missing
I need to be in the project root directory where the .git folder is located:
Directory: C:\Users\arazumov\Documents\Coding\Azure_09\funcPyTest
Mode LastWriteTime Length Name
---- ------------- ------ ----
d--h-- 02.09.2020 8:44 .git
d----- 01.09.2020 21:29 .vscode
d----- 01.09.2020 21:29 arPyTest
-a---- 01.09.2020 21:28 41 .funcignore
-a---- 01.09.2020 21:29 1787 .gitignore
-a---- 01.09.2020 21:49 2458 azure-pipelines.yml
-a---- 01.09.2020 21:28 289 host.json
-a---- 01.09.2020 21:28 118 local.settings.json
-a---- 01.09.2020 21:28 72 proxies.json
-a---- 01.09.2020 21:28 200 requirements.txt
PS C:\Users\arazumov\Documents\Coding\Azure_09\funcPyTest> sourceguard-cli.exe -src .
02-09-2020 09:19:41.023 SourceGuard Scan Started!
02-09-2020 09:19:41.638 Project name: PyTest path: .
02-09-2020 09:19:41.638 Scan ID: 1b9cb9624438a84d314e22f36fc2f01aa1a56612772d2127261173062e6b5933-zXAORM
02-09-2020 09:20:21.515 Scanning ...
02-09-2020 09:20:27.765 Analyzing ...
02-09-2020 09:21:58.856 Action: ALLOW
02-09-2020 09:21:58.857 Please see full analysis: https://portal.checkpoint.com/Dashboard/SourceGuard#/scan/sourcecode/1b9cb9624438a84d314e22f36fc2f01aa1a56612772d2127261173062e6b5933-zXAORM
By the way, your git repository name will be used as a "project name" in the SourceGuard portal.