sonarqube-bin

maintainer lapsus · 23 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a prebuilt binary from the official SonarSource binaries host, which is the project's legitimate distribution infrastructure; the source is trustworthy despite not being on a whitelist, and the build process does not execute unreviewed remote code or introduce supply-chain risks.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt binary from the official SonarSource binaries host, which is the project's legitimate distribution infrastructure; the source is trustworthy despite not being on a whitelist, and the build process does not execute unreviewed remote code or introduce supply-chain risks.

2 higher static findings superseded - not the current verdict (shown for transparency)
MEDIUM External download from an untrusted host, not in source=() external_download_not_in_source

curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.

  • PKGBUILD:30 curl -fsSL 'https://binaries.sonarsource.com/s3api?delimiter=/&prefix=Distribution/sonarqube/' |
MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:19 source=("https://binaries.sonarsource.com/Distribution/${_pkgname}/${_pkgname}-${pkgver}.zip"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Yakov Till <yakov.till@gmail.com>
2# Contributor: ksj podhorsky.ksj@gmail.com
3# Contributor: ParaSait <parasait at proton dot me>
4
5_pkgname=sonarqube
6pkgname=sonarqube-bin
7pkgver=26.7.0.124771
8pkgrel=1
9pkgdesc="An open source platform for continuous inspection of code quality (Community Build)"
10arch=('x86_64')
11url="https://www.sonarsource.com/products/sonarqube/"
12license=('LGPL-3.0-only')
13depends=('java-runtime>=17')
14optdepends=('postgresql: A sophisticated object-relational DBMS')
15backup=("etc/webapps/${_pkgname}/sonar.properties")
16conflicts=("${_pkgname}" "${_pkgname}-lts")
17provides=("${_pkgname}")
18options=('!strip' '!debug')
19source=("https://binaries.sonarsource.com/Distribution/${_pkgname}/${_pkgname}-${pkgver}.zip"
20 "${_pkgname}.service"
21 "${_pkgname}.tmpfiles"
22 "${_pkgname}.sysusers")
23install="sonarqube-bin.install"
24sha256sums=('ed3fba538bbd2531b8afa8b9f6b9e7b04f43bb702443b313addf8fdf427cfc74'
25 '58c0b2b9ae96a5901b8face8e35481e4c9a7feebdab6b21023805f6814a2fa98'
26 'b0204a7b86289929765c651627e9b55d02ae1f0da34184d2c05c7929d1222932'
27 '198fab7e6a5e9aeab55d080e5b7133be0e315706b159ebfbfb3126ddaf355aa4')
28
29latestver() {
30 curl -fsSL 'https://binaries.sonarsource.com/s3api?delimiter=/&prefix=Distribution/sonarqube/' |
31 grep -oP 'Distribution/sonarqube/sonarqube-\K[0-9.]+(?=\.zip</Key>)' | sort -Vu | tail -1
32}
33
34package() {
35 cd "${srcdir}/${_pkgname}-${pkgver}"
36
37 # Copy everything except conf and logs to /usr/share/webapps/sonarqube.
38 install -dm755 "${pkgdir}/usr/share/webapps/${_pkgname}"
39 cp -dr --no-preserve=ownership {bin,data,elasticsearch,extensions,lib,temp,web} "${pkgdir}/usr/share/webapps/${_pkgname}/"
40
41 # Remove non-Linux platform files.
42 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/bin/macosx-universal-64"
43 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/bin/windows-x86-64"
44 rm -f "${pkgdir}/usr/share/webapps/${_pkgname}"/elasticsearch/bin/*.bat
45 rm -f "${pkgdir}/usr/share/webapps/${_pkgname}"/elasticsearch/bin/*.exe
46 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/elasticsearch/lib/platform/windows-x64"
47 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/elasticsearch/lib/platform/darwin-aarch64"
48 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/elasticsearch/lib/platform/darwin-x64"
49 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/elasticsearch/lib/platform/linux-aarch64"
50 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/elasticsearch/lib/tools/windows-service-cli"
51 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/bin/winsw-license"
52
53 # ES config files ship as 640; fix so the sonarqube user can read them at runtime.
54 chmod 644 "${pkgdir}/usr/share/webapps/${_pkgname}"/elasticsearch/config/*
55
56 # Install the license.
57 install -Dm644 "COPYING" "${pkgdir}/usr/share/doc/${_pkgname}/COPYING"
58
59 # Install the configuration files to /etc/webapps/sonarqube.
60 install -Dm644 "conf/sonar.properties" "${pkgdir}/etc/webapps/${_pkgname}/sonar.properties"
61
62 # Install the systemd configuration and service files.
63 cd "${srcdir}"
64 install -Dm644 "${_pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
65 install -Dm644 "${_pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
66 install -Dm644 "${_pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
67
68 # Create symbolic links because SonarQube expects a specific directory layout.
69 ln -s "/var/log/${_pkgname}" "${pkgdir}/usr/share/webapps/${_pkgname}/logs"
70 ln -s "/run/${_pkgname}" "${pkgdir}/usr/share/webapps/${_pkgname}/run"
71 ln -s "/etc/webapps/${_pkgname}" "${pkgdir}/usr/share/webapps/${_pkgname}/conf"
72 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/temp"
73 ln -s "/var/lib/${_pkgname}/temp" "${pkgdir}/usr/share/webapps/${_pkgname}/temp"
74 rm -rf "${pkgdir}/usr/share/webapps/${_pkgname}/data"
75 ln -s "/var/lib/${_pkgname}/data" "${pkgdir}/usr/share/webapps/${_pkgname}/data"
76 ln -s "/var/lib/${_pkgname}/downloads" "${pkgdir}/usr/share/webapps/${_pkgname}/extensions/downloads"
77}
78

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 3
2026-08-02 00:16:08 LOW 3
2026-08-01 00:11:18 LOW 3
2026-07-31 00:14:10 LOW 3
2026-07-30 00:17:23 LOW 3
2026-07-29 00:25:53 LOW 3
2026-07-28 00:07:28 LOW 3
2026-07-27 00:24:32 LOW 3
2026-07-26 00:07:32 LOW 3
2026-07-25 00:13:44 LOW 3
2026-07-24 00:02:28 LOW 3
2026-07-23 00:14:47 LOW 3
2026-07-22 00:29:32 LOW 3
2026-07-21 00:24:15 LOW 3
2026-07-20 00:19:49 LOW 3
2026-07-19 00:17:08 LOW 3
2026-07-18 00:14:48 LOW 3
2026-07-17 00:06:16 LOW 3
2026-07-16 00:05:41 LOW 3
2026-07-15 00:09:25 LOW 3

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion