Sonaqube scan action (Github) v4.1.0 and v4.2.0 failing - wget: unrecognized option '--no-verbose'

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - sonarversion v10.8.1
  • how is SonarQube deployed: Docker
  • what are you trying to achieve - Trying to use SonarSource/sonarqube-scan-action@v4.2.0 or v4.1.0 for sonar analysis
  • what have you tried so far to achieve this - i have used the latest versions v4.2.0 and 4.1.0 sonar action failed due to below error mentioned.

line no. 35 , causing the issue with option --no-verbose.
wget --no-verbose --user-agent=sonarqube-scan-action ā€œ$SCANNER_URIā€

if we runt he command with
wget -nv --user-agent=sonarqube-scan-action ā€œ$SCANNER_URIā€ , its working ā€¦

Could you check and respond and correct me if i am wrong. Detailed logs pasted below.

Do not share screenshots of logs ā€“ share the text itself (bonus points for being well-formatted)!

Run SonarSource/sonarqube-scan-action@v4.2.0
Run ${GITHUB_ACTION_PATH}/scripts/sanity-checks.sh
Run actions/cache@v4
/usr/bin/docker exec 80903b464aec7165605a7b3807fbc1777e81a73497d6b429c39a9810e6b23542 sh -c ā€œcat /etc/*release | grep ^IDā€
Cache not found for input keys: sonar-scanner-cli-6.2.1.4610-Linux-ARM64
Run ${GITHUB_ACTION_PATH}/scripts/install-sonar-scanner-cli.sh

Usage: wget [-cqS] [ā€“spider] [-O FILE] [-o LOGFILE] [ā€“header STR]
[ā€“post-data STR | --post-file FILE] [-Y on/off]
[-P DIR] [-U AGENT] [-T SEC] URLā€¦

Hi,

Thanks for this report.

Iā€™m glad youā€™ve already found your workaround.

And Iā€™ll let the team know.

 
Ann

Is this been addressed in sonarqube action for file

line no. 35

Hello @vinayrangaswamy,
This issue is most likely happening because you are running the action with a worker using Busybox. I created a ticket to change how the wget command is used.

I would recommend using a different worker if possible, as this may not be the only change needed to run the action with Busybox.

2 Likes