fossology / fossology

FOSSology is an open source license compliance software system and toolkit. As a toolkit you can run license, copyright and export control scans from the command line. As a system, a database and web ui are provided to give you a compliance workflow. License, copyright and export scanners are tools used in the workflow.
https://fossology.github.io/
GNU General Public License v2.0
801 stars 417 forks source link

Upload from VCS (git clone) with password fails #2403

Open duhow opened 1 year ago

duhow commented 1 year ago

Description

Uploading source code from Version Control System using Git, in a private Git repository (GitHub) fails.

⚠️ The command git clone --password does not exist.

How to reproduce

Versions

Using version 4.2.1 in Docker.

Logs

2023-03-21 13:04:14 wget_agent [0] :: JOB[98].wget_agent[21960.localhost]: "FATAL wget_agent.c.632: [wget_agent.c:632] Error exit: 129, CMD:git clone https://github.com/midokura/private-repository  --password HERE_GOES_THE_PASSWORD  /srv/fossology/repository/fossology-0/wget/wget.21960.dir >/dev/null 2>&1 && rm -rf /srv/fossology/repository/fossology-0/wget/wget.21960.dir/.git"
2023-03-21 13:04:14 wget_agent [0] :: JOB[98].wget_agent[21960.localhost]: "FATAL wget_agent.c.637: please make sure the URL of repo is correct, also add correct proxy for your version control system, command is:git clone https://github.com/midokura/private-repository  --password HERE_GOES_THE_PASSWORD  /srv/fossology/repository/fossology-0/wget/wget.21960.dir >/dev/null 2>&1 && rm -rf /srv/fossology/repository/fossology-0/wget/wget.21960.dir/.git, GlobalTempFile is:/srv/fossology/repository/fossology-0/wget/wget.21960, rc is:33024. "
2023-03-21 13:04:14 wget_agent [0] :: JOB[98].wget_agent[21960.localhost]: "FATAL main.c.268: upload 13 File retrieval failed: uploadpk=13 tempfile=/srv/fossology/repository/fossology-0/wget/wget.21960 URL=https://github.com/midokura/private-repository Type=Git"
2023-03-21 13:04:14 wget_agent [0] :: JOB[98].wget_agent[21960.localhost]: agent failed with error code 23
2023-03-21 13:04:14 wget_agent [0] :: JOB[98].wget_agent[21960.localhost]: agent failed, code: 23
chacabuco commented 1 year ago

@duhow Does your password have any special characters? I had the same issue, and it might have to do with the '#' character.

duhow commented 1 year ago

Can't remember but I would assume no, the password was a GitHub PAT (Alphanumeric + underscore).