zls-master-bin
The package downloads prebuilt binaries from the project's official release infrastructure (releases.zigtools.org), validates them with both SHA-256 and minisign, and installs only the project's own binaries and documentation; the host is not whitelisted but is plausibly official and trusted by the project.
Triggered rules
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 prebuilt binaries from the project's official release infrastructure (releases.zigtools.org), validates them with both SHA-256 and minisign, and installs only the project's own binaries and documentation; the host is not whitelisted but is plausibly official and trusted by the project.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:49
local index_json="$(curl -s "https://releases.zigtools.org/v1/zls/select-version?zig_version=${zig_version}&compatibility=only-runtime")"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
declare -Ag _arch=(
['aarch64']='aarch64'
['armv7h']='arm'
['loong64']='loongarch64'
['powerpc64le']='powerpc64le'
['riscv64']='riscv64'
# ['s390x']='s390x'
['i686']='x86'
['x86_64']='x86_64'
)
_basename="zls"
_pkgname="${_basename}-master"
pkgname="${_pkgname}-bin"
pkgver=0.17.0dev.38+ae3ab43c
pkgrel=1
pkgdesc="A language server for Zig"
arch=(
"${!_arch[@]}"
)
url="https://zigtools.org/zls"
license=(
'MIT'
)
depends=(
'sh'
'zig-master'
)
makedepends=(
'curl'
'jq'
'minisign'
)
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
source=(
"${_basename}-versioned.sh"
)
sha256sums=('b9e70d344290a58c6e8199a22232fbd2a8789cf76ddf0574f0a4ea647299ea68')
prepare() {
local zig_version="$(zig-master version | tr -d '\n' | jq -sRr @uri)"
local index_json="$(curl -s "https://releases.zigtools.org/v1/zls/select-version?zig_version=${zig_version}&compatibility=only-runtime")"
local artifact_tarball="$(jq -r ".\"${_arch[$CARCH]}-linux\".\"tarball\"" <<< "${index_json}")"
local artifact_shasum="$(jq -r ".\"${_arch[$CARCH]}-linux\".\"shasum\"" <<< "${index_json}")"
local artifact_filename="$(basename "${artifact_tarball}")"
cd "${srcdir}"
echo " ==> Retrieving sources..."
echo " -> Downloading ${artifact_filename}..."
curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o "${artifact_filename}" "${artifact_tarball}"
echo " -> Downloading ${artifact_filename}.minisig..."
curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o "${artifact_filename}.minisig" "${artifact_tarball}.minisig"
echo " ==> Validating source files with sha256sums..."
echo "${artifact_shasum} ${artifact_filename}" | sha256sum -c -
echo " ==> Validating source files with minisig..."
# https://github.com/zigtools/release-worker?tab=readme-ov-file#build-artifacts
# https://github.com/zigtools/zls/releases/latest
local zls_minisign="RWR+9B91GBZ0zOjh6Lr17+zKf5BoSuFvrx2xSeDE57uIYvnKBGmMjOex"
minisign -V \
-P "${zls_minisign}" \
-m "${artifact_filename}"
echo " ==> Extracting sources..."
echo " -> Extracting ${artifact_filename} with bsdtar"
bsdtar -xf "${artifact_filename}"
chmod +x ./"${_basename}"
cd "${srcdir}"
sed -e "s|@@ZIG_PATH@@|/opt/zig-master|g" \
-e "s|@@ZLS_PATH@@|/usr/lib/${_pkgname}|g" \
-i "${_basename}-versioned.sh"
}
pkgver() {
cd "${srcdir}"
./"${_basename}" version | sed 's/-//g'
}
package() {
cd "${srcdir}"
install -vDm755 "${_basename}-versioned.sh" "${pkgdir}/usr/bin/${_pkgname}"
install -vDm755 "${_basename}" "${pkgdir}/usr/lib/${_pkgname}/${_basename}"
install -vDm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |