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
7
pkgname=grafana-bin
8
_pkgname=grafana
9
pkgver=13.1.0
10
_pkgver=${pkgver}
11
_build_id=28013217238
12
pkgrel=1
13
pkgdesc='Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB - binary version'
14
url='https://grafana.com/grafana/download?edition=oss'
15
conflicts=('grafana')
16
provides=('grafana')
17
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
18
license=('AGPL' 'Apache')
19
install=${_pkgname}.install
20
backup=('etc/grafana.ini')
21
source=('grafana.service'
22
'grafana.sysusers'
23
'grafana.tmpfiles'
24
)
25
install=$_pkgname.install
26
source_x86_64=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_amd64.tar.gz")
27
source_armv6h=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm-6.tar.gz")
28
source_armv7h=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm-7.tar.gz")
29
source_aarch64=("https://dl.grafana.com/grafana/release/${_pkgver}/grafana_${_pkgver}_${_build_id}_linux_arm64.tar.gz")
30
sha256sums=('9e3637d00065b88e051f9950d836ea3ec69f21ab8ab452f3b99a4deb30d41efa'
31
'9cbd46f771dae5e2308b991a00d07a25cc1765f9bdd4082726108e3476403b56'
32
'3cd6026ba009e05f49ec265d049d590d4f35330c1f14cd90a468c8d588501675')
33
sha256sums_x86_64=('4f562bb224b8bb758b47789381babb284cb41687da8d714f2ff0e118e945e775')
34
sha256sums_armv6h=('4aa94ad3ef8b4881cc87a6850fbebc142bb4689090e9c5cd01d315d996b4290c')
35
sha256sums_armv7h=('4dd1c117d868b3e2c870618468e873fc98098ebc5093c99e6456b5a1a7660f81')
36
sha256sums_aarch64=('d5f98305792b917b173320d5fde6b394685ae5df179ae9f9a8f22b56436b389a')
37
38
prepare() {
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
47
package() {
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) | Severity | Rules |
|---|---|---|
| 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 |