nginx-vts-exporter

LOW
maintainer MarsSeed 0 votes scanned 2026-10-17 00:21:55.226236
View on AUR
Why flagged

The source is a tarball from GitHub's official codeload domain, which is a standard and trusted host for GitHub repositories, despite the non-whitelisted URL pattern; the package builds from verifiable source code with a valid checksum.

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 tarball from GitHub's official codeload domain, which is a standard and trusted host for GitHub repositories, despite the non-whitelisted URL pattern; the package builds from verifiable source code with a valid checksum.

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:13 source=("${pkgname}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgname}/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
4pkgname='nginx-vts-exporter'
5pkgver='0.10.8'
6pkgrel='5'
7pkgdesc='Prometheus exporter for Nginx vts stats'
8arch=('x86_64' 'aarch64')
9_uri='github.com/sysulq'
10url="https://${_uri}/${pkgname}"
11license=('MIT')
12makedepends=('go' 'git')
13source=("${pkgname}-${pkgver}.tar.gz::https://codeload.${_uri}/${pkgname}/tar.gz/refs/tags/v${pkgver}"
14 "${pkgname}.service")
15sha256sums=('2fc964f1129f732beaf10722380d61754c4f0744c48a2ab11028428eff45ce11'
16 '7838c08b3299d2d6d5bb0b6c281f1fcee8f9dc254bfb5e1a8d59699e52495f06')
17
18prepare() {
19 export GOPATH="${srcdir}/gopath"
20 export GOBIN="${GOPATH}/bin"
21 export GOTMPDIR="${GOPATH}/tmp"
22 export GOCACHE="${srcdir}/cache/go-cache"
23 export GOMODCACHE="${srcdir}/cache/go"
24 mkdir -p "${GOPATH}/src/${_uri}"
25 mkdir -p "${GOTMPDIR}"
26 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
27 ln -snf "${srcdir}/${pkgname}-${pkgver}" "${GOPATH}/src/${_uri}/${pkgname}"
28}
29
30build() {
31 cd "${GOPATH}/src/${_uri}/${pkgname}"
32 eval "$(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")"
33 GOOS="${GOHOSTOS}" GOARCH="${GOHOSTARCH}" BUILDTAGS="netgo static_build" \
34 go build \
35 -buildmode="pie" \
36 -trimpath \
37 -mod="readonly" \
38 -modcacherw \
39 -ldflags "-linkmode external -extldflags '${LDFLAGS}' \
40 -X github.com/prometheus/common/version.Version=${pkgver} \
41 -X github.com/prometheus/common/version.Revision=${pkgrel} \
42 -X github.com/prometheus/common/version.Branch=tarball \
43 -X github.com/prometheus/common/version.BuildUser=$(whoami)@$(hostnamectl hostname) \
44 -X github.com/prometheus/common/version.BuildDate=$(date -u '+%Y%m%d-%H:%M:%S' --date=@${SOURCE_DATE_EPOCH})"
45}
46
47check() {
48 cd "${GOPATH}/src/${_uri}/${pkgname}"
49 TMPDIR="${GOPATH}/tmp" go test -modcacherw ./...
50}
51
52package() {
53 install -Dm0755 "${GOPATH}/src/${_uri}/${pkgname}/${pkgname}" -t "${pkgdir}/usr/bin"
54 install -Dm0644 "${GOPATH}/src/${_uri}/${pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
55 install -Dm0644 "${pkgname}.service" -t "${pkgdir}/usr/lib/systemd/system"
56}
57

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