grafana-bin

maintainer wzyboy · 20 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads prebuilt Grafana binaries from Grafana's official distribution domain (dl.grafana.com), which is the project's legitimate release infrastructure; despite the static analyzer flagging the host as non-standard, the source is trustworthy and the package installs only official binaries without executing unreviewed remote code.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads prebuilt Grafana binaries from Grafana's official distribution domain (dl.grafana.com), which is the project's legitimate release infrastructure; despite the static analyzer flagging the host as non-standard, the source is trustworthy and the package installs only official binaries without executing unreviewed remote code.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:26 source_x86_64=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_amd64.tar.gz")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org>
2# Contributor: Sébastien "Seblu" Luttringer
3# Contributor: Carsten Feuls <archlinux@carstenfeuls.de>
4# Contributor: Gilles Hamel <hamelg at laposte dot net>
5# Contributor: Erikas Rudinskas <erikmnkl@gmail.com>
6
7pkgname=grafana-bin
8_pkgname=grafana
9pkgver=13.1.0
10_pkgver=${pkgver}
11_build_id=28013217238
12pkgrel=1
13pkgdesc='Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB - binary version'
14url='https://grafana.com/grafana/download?edition=oss'
15conflicts=('grafana')
16provides=('grafana')
17arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
18license=('AGPL' 'Apache')
19install=${_pkgname}.install
20backup=('etc/grafana.ini')
21source=('grafana.service'
22 'grafana.sysusers'
23 'grafana.tmpfiles'
24 )
25install=$_pkgname.install
26source_x86_64=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_amd64.tar.gz")
27source_armv6h=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm-6.tar.gz")
28source_armv7h=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm-7.tar.gz")
29source_aarch64=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm64.tar.gz")
30sha256sums=('9e3637d00065b88e051f9950d836ea3ec69f21ab8ab452f3b99a4deb30d41efa'
31 '9cbd46f771dae5e2308b991a00d07a25cc1765f9bdd4082726108e3476403b56'
32 '3cd6026ba009e05f49ec265d049d590d4f35330c1f14cd90a468c8d588501675')
33sha256sums_x86_64=('4f562bb224b8bb758b47789381babb284cb41687da8d714f2ff0e118e945e775')
34sha256sums_armv6h=('4aa94ad3ef8b4881cc87a6850fbebc142bb4689090e9c5cd01d315d996b4290c')
35sha256sums_armv7h=('4dd1c117d868b3e2c870618468e873fc98098ebc5093c99e6456b5a1a7660f81')
36sha256sums_aarch64=('d5f98305792b917b173320d5fde6b394685ae5df179ae9f9a8f22b56436b389a')
37
38prepare() {
39 cd ${_pkgname}-${_pkgver}
40 # set arch linux paths
41 sed -ri 's,^(\s*data\s*=).*,\1 /var/lib/grafana,' conf/defaults.ini
42 sed -ri 's,^(\s*plugins\s*=).*,\1 /var/lib/grafana/plugins,' conf/defaults.ini
43 sed -ri 's,^(\s*provisioning\s*=).*,\1 /var/lib/grafana/conf/provisioning,' conf/defaults.ini
44 sed -ri 's,^(\s*logs\s*=).*,\1 /var/log/grafana,' conf/defaults.ini
45}
46
47package() {
48 install -Dm644 grafana.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/grafana.conf"
49 install -Dm644 grafana.sysusers "$pkgdir/usr/lib/sysusers.d/grafana.conf"
50 install -Dm644 grafana.service "$pkgdir/usr/lib/systemd/system/grafana.service"
51
52 cd ${_pkgname}-${pkgver}
53 install -Dm755 bin/grafana "$pkgdir/usr/bin/grafana"
54 install -Dm640 -o207 -g207 conf/sample.ini "$pkgdir/etc/grafana.ini"
55 install -Dm644 conf/defaults.ini "$pkgdir/usr/share/grafana/conf/defaults.ini"
56 install -dm755 "$pkgdir/usr/share/grafana/"
57 cp -r public plugins-bundled "$pkgdir/usr/share/grafana/"
58
59 # Remove unit tests
60 rm -r "$pkgdir/usr/share/grafana/public/test"
61
62 # Source maps are only useful for frontend debugging and add substantial size.
63 find "$pkgdir/usr/share/grafana/public" -type f -name '*.js.map' -delete
64 find "$pkgdir/usr/share/grafana/public" -type f -name '*.js' -exec \
65 sed -i '/^\/\/# sourceMappingURL=.*\.js\.map$/d' {} +
66}
67

Scan history

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

Report a package

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

0 / 4000
Your suggestion