vim-tabnine-git
Triggered rules
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:62
tabnine_version="$(curl -sS https://update.tabnine.com/bundles/version)/x86_64-unknown-linux-musl"
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:66
https://update.tabnine.com/bundles/$tabnine_version/TabNine.zip
llm_review
An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 80%): The PKGBUILD downloads a prebuilt binary (TabNine.zip) from update.tabnine.com at build time with SKIP'd checksum. While update.tabnine.com is the official Tabnine distribution server, the version URL is dynamically constructed at parse time via a live curl call (`curl -sS https://update.tabnine.com/bundles/version`), meaning the exact binary fetched is determined at runtime with no integrity verification. The binary is then installed as an executable. This is a genuine supply-chain concern: no checksum pinning means any MITM or server-side substitution would go undetected. The git sources (tabnine/YouCompleteMe, tabnine/ycmd) are also SKIP'd but are official repos. The dynamic version resolution at global scope (outside any function) is also architecturally problematic for reproducibility. This matches the medium severity profile: executed binary from a host that, while official, has no integrity guarantee in this PKGBUILD.
PKGBUILD
2 offending line(s) highlighted# Contributor: Will Handley <wh260@cam.ac.uk>
# Contributor: Leonidas Spyropoulos <artafinde at gmail dot com>
# Contributor: staletic
# Contributor: James Brink <brink.james@gmail.com>
# Contributor: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>
# Contributor: p <parimal@beyond8labs.com>
# Contributor: Victor <victor@xirion.net>
# Contributor: Jan-Tarek Butt <tarek AT ring0 DOT de>
# Contributor: Erik Beran <eberan AT gmail DOT com>
# Contributor: Thor K. H. <thor at roht dot no>
# Contributor: Babken Vardanyan <483ken 4tgma1l
# Contributor: mikezackles
# Contributor: z33ky
# Contributor: stykr
# Contributor: Svenstaro
# Contributor: KaiSforza
# Contributor: Simon Gomizelj <simongmzlj@gmail.com>
# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: shmilee
# Contributor: foobster
# Contributor: archdria
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: edacval
# Contributor: MarcelPa
# Contributor: Trent
# Contributor: urxvtcd-256
_gocode="y"
_typescript="y" # If you enable both typescript and tern it will defaul to typescript.
_tern="n" # Tern seems abandoned - consider moving to TSserver above (see project page)
_java="y"
_use_system_clang="ON"
_use_system_abseil="OFF"
_neovim="$NEOVIM_YOUCOMPLETEME"
### IMPORTANT: Do no edit below this line unless you know what you're doing
pkgname=vim-tabnine-git
pkgver=r2911.4a042af0
pkgrel=1
pkgdesc='A code-completion engine for Vim with tabnine'
arch=('x86_64')
url='https://www.tabnine.com/'
license=('GPL3')
groups=('vim-plugins')
depends=('vim' 'python>=3.6' 'python-watchdog' 'python-bottle' 'clang>=11.0')
makedepends=('git' 'cmake' 'pybind11')
optdepends=(
'gopls: Go semantic completion'
'nodejs-tern: JavaScript semantic completion'
'rust-analyzer: Rust semantic completion'
'typescript: Typescript semantic completion'
'python-jedi: Python semantic completion'
'python-numpydoc: Python semantic completion'
'python-regex: Better Unicode support'
'omnisharp-roslyn: C# semantic completion'
'java-environment>=11: Java semantic completion'
'jdtls: Java semantic completion'
'abseil-cpp: if setting _use_system_abseil ON')
replaces=('vim-youcompleteme-git')
tabnine_version="$(curl -sS https://update.tabnine.com/bundles/version)/x86_64-unknown-linux-musl"
if [[ ${_use_system_clang} == "ON" ]]; then
source=(git+https://github.com/tabnine/YouCompleteMe.git
git+https://github.com/tabnine/ycmd.git
https://update.tabnine.com/bundles/$tabnine_version/TabNine.zip
)
sha256sums=('SKIP'
'SKIP'
'SKIP')
noextract=(TabNine.zip)
else
source=(git+https://github.com/tabnine/YouCompleteMe.git
git+https://github.com/tabnine/ycmd.git
https://update.tabnine.com/bundles/$tabnine_version/TabNine.zip
clangd-13.0.0.tar.bz2::https://github.com/tabnine/llvm/releases/download/13.0.0/clangd-13.0.0-x86_64-unknown-linux-gnu.tar.bz2
libclang-13.0.0.tar.bz2::https://github.com/tabnine/llvm/releases/download/13.0.0/libclang-13.0.0-x86_64-unknown-linux-gnu.tar.bz2)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'10a64c468d1dd2a384e0e5fd4eb2582fd9f1dfa706b6d2d2bb88fb0fbfc2718d'
'9a5bee818a4995bc52e91588059bef42728d046808206bfb93977f4e3109e50c')
noextract=TabNine.zip
fi
pkgver() {
cd "${srcdir}"/YouCompleteMe || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}"/YouCompleteMe || exit
git submodule init third_party/ycmd
git config submodule.ycmd.url "$srcdir"/ycmd
git submodule update third_party/ycmd
rm -rf "${srcdir}"/YouCompleteMe/third_party/ycmd/cpp/pybind11 || exit
if [[ ${_use_system_clang} == "ON" ]]; then
rm -rf "${srcdir}"/YouCompleteMe/third_party/ycmd/cpp/llvm || exit
fi
if [[ "$_gocode" == "y" ]]; then
sed -e 's|\(gopls_binary_path":\).*$|\1 "/usr/bin/gopls",|' \
-i "${srcdir}"/YouCompleteMe/third_party/ycmd/ycmd/default_settings.json
fi
if [[ "$_typescript" == "y" ]]; then
rm -rf "${srcdir}/YouCompleteMe/third_party/ycmd/third_party/tern_runtime" || exit
sed -e 's|\(tsserver_binary_path":\).*$|\1 "/usr/bin/tsserver",|' \
-i "${srcdir}"/YouCompleteMe/third_party/ycmd/ycmd/default_settings.json
fi
if [[ "$_java" == "y" ]]; then
sed -e 's|\(java_jdtls_workspace_root_path":\).*$|\1 "/tmp",|' \
-e 's|\(java_binary_path":\).*$|\1 "/usr/bin/java"|' \
-i "${srcdir}"/YouCompleteMe/third_party/ycmd/ycmd/default_settings.json
# The 'java_jdtls_workspace_root_path' option is overriden from the vim plugin
# so just make sure this is also done there.
sed -e "s|\(ycm_java_jdtls_workspace_root_path',\).*\$|\1 '/tmp' )|" \
-i "${srcdir}"/YouCompleteMe/plugin/youcompleteme.vim
fi
if [[ ${_use_system_clang} == "ON" ]]; then
sed -e 's|\(clangd_binary_path":\).*$|\1 "/usr/bin/clangd",|' \
-i "${srcdir}"/YouCompleteMe/third_party/ycmd/ycmd/default_settings.json
# The 'ycm_clangd_binary_path' option is overriden from the vim plugin
# so just make sure this is also done there.
sed -e "s|\(ycm_clangd_binary_path',\).*\$|\1 '/usr/bin/clangd' )|" \
-i "${srcdir}"/YouCompleteMe/plugin/youcompleteme.vim
fi
sed -e 's|\(rust_toolchain_root":\).*$|\1 "/usr",|' \
-e 's|\(roslyn_binary_path":\).*$|\1 "/opt/omnisharp-roslyn/OmniSharp.exe",|' \
-e 's|\(mono_binary_path":\).*$|\1 "/usr/bin/mono",|' \
-i "${srcdir}"/YouCompleteMe/third_party/ycmd/ycmd/default_settings.json
unzip ${srcdir}/TabNine.zip -d ${srcdir}/TabNine
}
build() {
mkdir -p "${srcdir}"/ycmd_build
cd "${srcdir}"/ycmd_build || exit
cmake \
-DUSE_CLANG_COMPLETER=${_use_system_clang} \
-DUSE_SYSTEM_LIBCLANG=${_use_system_clang} \
-DUSE_SYSTEM_ABSEIL=${_use_system_abseil} \
../YouCompleteMe/third_party/ycmd/cpp
make ycm_core
}
package() {
pkg_ycmd_dir="${pkgdir}/usr/share/vim/vimfiles/third_party/ycmd"
cd "${srcdir}"/YouCompleteMe || exit
install -Ddm755 "${pkg_ycmd_dir}"
cp -dr --no-preserve=ownership autoload doc plugin python "${pkgdir}/usr/share/vim/vimfiles"
cp -dr --no-preserve=ownership third_party/ycmd/{ycmd,ycm_core.*.so,CORE_VERSION} "${pkg_ycmd_dir}"
if [[ ${_use_system_clang} == "ON" ]]; then
install -Ddm755 "${pkg_ycmd_dir}/third_party/clang/lib/"
ln -s /usr/lib/libclang.so "${pkg_ycmd_dir}/third_party/clang/lib/libclang.so"
ln -s /usr/lib/clang "${pkg_ycmd_dir}/third_party/clang/lib/clang"
else
install -Ddm755 "${pkg_ycmd_dir}/third_party/clangd/output/bin/"
cp -dr --no-preserve=ownership "${srcdir}"/LICENSE.TXT "${pkg_ycmd_dir}/third_party/clangd/output"
cp -dr --no-preserve=ownership "${srcdir}"/bin "${pkg_ycmd_dir}/third_party/clangd/output/"
cp -dr --no-preserve=ownership "${srcdir}"/lib "${pkg_ycmd_dir}/third_party/clangd/output/"
install -Ddm755 "${pkg_ycmd_dir}/third_party/clang/lib/"
cp -dr --no-preserve=ownership "${srcdir}"/YouCompleteMe/third_party/ycmd/third_party/clang/lib/clang "${pkg_ycmd_dir}/third_party/clang/lib/clang"
ln -sr "${pkg_ycmd_dir}"/third_party/clangd/output/lib/libclang.so "${pkg_ycmd_dir}/third_party/clang/lib/libclang.so"
fi
if [[ "$_java" == "y" ]]; then
install -Ddm755 "${pkg_ycmd_dir}/third_party/eclipse.jdt.ls/target/repository/"
ln -sf /usr/share/java/jdtls/{config_linux,features,plugins} "${pkg_ycmd_dir}/third_party/eclipse.jdt.ls/target/repository/"
fi
if [[ ${_tern} == "ON" ]]; then
install -Ddm755 "${pkg_ycmd_dir}/third_party/tern_runtime/node_modules/"
ln -s /usr/lib/node_modules/tern "${pkg_ycmd_dir}/third_party/tern_runtime/node_modules/"
fi
install -Ddm755 "${pkg_ycmd_dir}/third_party/tabnine/binaries/${tabnine_version}"
cp -dr --no-preserve=ownership "${srcdir}/ycmd/third_party/tabnine/__init__.py" "${pkg_ycmd_dir}/third_party/tabnine/"
install -Dm755 ${srcdir}/TabNine/* "${pkg_ycmd_dir}/third_party/tabnine/binaries/${tabnine_version}/"
find "${pkgdir}" \( -name .git -or -name 'test*' -or -name 'run_tests.py' \) -exec rm -fr {} +
python -m compileall -d /usr/share/vim/vimfiles "${pkgdir}/usr/share/vim/vimfiles"
python -O -m compileall -d /usr/share/vim/vimfiles "${pkgdir}/usr/share/vim/vimfiles"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | MEDIUM | 3 |
| 2026-08-02 00:16:08 | MEDIUM | 3 |
| 2026-08-01 00:11:18 | MEDIUM | 3 |
| 2026-07-31 00:14:10 | MEDIUM | 3 |
| 2026-07-30 00:17:23 | MEDIUM | 3 |
| 2026-07-29 00:25:53 | MEDIUM | 3 |
| 2026-07-28 00:07:28 | MEDIUM | 3 |
| 2026-07-27 00:24:32 | MEDIUM | 3 |
| 2026-07-26 00:07:32 | MEDIUM | 3 |
| 2026-07-25 00:13:44 | MEDIUM | 3 |
| 2026-07-24 00:02:28 | MEDIUM | 3 |
| 2026-07-23 00:14:47 | MEDIUM | 3 |
| 2026-07-22 00:29:32 | MEDIUM | 3 |
| 2026-07-21 00:24:15 | MEDIUM | 3 |
| 2026-07-20 00:19:49 | MEDIUM | 3 |
| 2026-07-19 00:17:08 | MEDIUM | 3 |
| 2026-07-18 00:14:48 | MEDIUM | 3 |
| 2026-07-17 00:06:16 | MEDIUM | 3 |
| 2026-07-16 00:05:41 | MEDIUM | 3 |
| 2026-07-15 00:09:25 | MEDIUM | 3 |