prometheus-transceiver-exporter

LOW
maintainer k0ste 0 votes base transceiver-exporter scanned 2026-10-17 00:21:55.226236
View on AUR
Why flagged

The source is a legitimate tarball from the project's GitHub repository via codeload.github.com, which is a standard GitHub domain; building from source is normal for Go packages on AUR, and no untrusted executables are downloaded or executed.

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 source is a legitimate tarball from the project's GitHub repository via codeload.github.com, which is a standard GitHub domain; building from source is normal for Go packages on AUR, and no untrusted executables are downloaded or executed.

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:14 source=("${pkgbase}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgbase}/tar.gz/refs/tags/v${pkgver}"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
2# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
3
4pkgbase='transceiver-exporter'
5pkgname="prometheus-${pkgbase}"
6pkgver='1.5.2'
7pkgrel='1'
8pkgdesc='Prometheus exporter for Optical Transeiver OAM data'
9arch=('x86_64' 'aarch64')
10_uri="github.com/wobcom"
11url="https://${_uri}/${pkgbase}"
12license=('GPL')
13makedepends=('go')
14source=("${pkgbase}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgbase}/tar.gz/refs/tags/v${pkgver}"
15 "${pkgname}"
16 "${pkgname}.service"
17 "${pkgname}.sysusers")
18sha256sums=('5344425760115f0548ca654f9de77c93c8e5c2ff8982360bf7bf5d74bb12673d'
19 '9900f9ed20f8e3cd0f24fe585e1f403bb6c052a218bb9e81f6cbb53e52803942'
20 'e71cd38eb040bc5b7f73f105d9d8dd2bcf83d74cbe1e3d796fbcb25a972a905a'
21 'c8b4a9a31c29855ed033ffe981ae675ac6dd4399bb11f813d053bb0cd156b4d5')
22backup=("etc/conf.d/${pkgname}")
23
24prepare() {
25 export GOPATH="${srcdir}/gopath"
26 export GOBIN="${GOPATH}/bin"
27 export GOTMPDIR="${GOPATH}/tmp"
28 export GOCACHE="${srcdir}/cache/go-cache"
29 export GOMODCACHE="${srcdir}/cache/go"
30 mkdir -p "${GOPATH}/src/${_uri}"
31 mkdir -p "${GOTMPDIR}"
32 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
33 ln -snf "${srcdir}/${pkgbase}-${pkgver}" "${GOPATH}/src/${_uri}/${pkgbase}"
34}
35
36build() {
37 cd "${GOPATH}/src/${_uri}/${pkgbase}"
38 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
39 GOOS="${GOHOSTOS}" GOARCH="${GOHOSTARCH}" \
40 go build \
41 -buildmode="pie" \
42 -trimpath \
43 -mod="readonly" \
44 -modcacherw \
45 -ldflags "-linkmode external -extldflags '${LDFLAGS}'"
46}
47
48check() {
49 cd "${GOPATH}/src/${_uri}/${pkgbase}"
50 TMPDIR="${GOPATH}/tmp" go test -modcacherw ./...
51}
52
53package() {
54 install -Dm0755 "${GOPATH}/src/${_uri}/${pkgbase}/${pkgbase}" "${pkgdir}/usr/bin/${pkgname}"
55 install -Dm0644 "${GOPATH}/src/${_uri}/${pkgbase}/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
56 install -Dm0644 "${pkgname}" -t "${pkgdir}/etc/conf.d"
57 install -Dm0644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
58 install -Dm0644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 Low 2
2026-10-12 00:18:51 Low 2
2026-10-11 00:26:05 Low 2
2026-10-10 00:11:52 Low 2
2026-10-09 00:05:33 Low 2
2026-10-08 00:28:03 Low 2
2026-10-07 00:21:34 Low 2
2026-10-06 00:13:36 Low 2
2026-10-05 00:08:03 Low 2
2026-10-04 00:18:08 Low 2
2026-10-03 00:23:04 Low 2
2026-10-02 00:00:32 Low 2
2026-10-01 00:02:06 Low 2
2026-09-30 00:20:07 Low 2
2026-09-29 00:07:46 Low 2
2026-09-28 00:28:32 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