athas
The npx command builds the project's own frontend using Vite from the verified source tarball; this is a standard build step, not execution of a remote package.
Triggered rules
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 90%): The npx command builds the project's own frontend using Vite from the verified source tarball; this is a standard build step, not execution of a remote package.
1 higher static finding superseded - not the current verdict (shown for transparency)
remote_code_tool
`npx`/`bunx`/`pnpm dlx`/`deno run <url>` downloads AND runs a remote package at build time — the moral equivalent of piping a download into a shell. Severity downgraded: Node.js consumer context.
-
PKGBUILD:70
npx vite build
PKGBUILD
1 offending line(s) highlighted# Maintainer: Juan Roa <hello@juanroa.dev>
pkgname=athas
pkgver=0.13.0
pkgrel=1
pkgdesc="Lightweight code editor built with React, TypeScript, and Tauri"
arch=('x86_64' 'aarch64')
url="https://athas.dev"
license=('AGPL-3.0-or-later')
depends=('gtk3' 'hicolor-icon-theme' 'libayatana-appindicator' 'openssl' 'webkit2gtk-4.1')
makedepends=('bun' 'cmake' 'npm' 'rust')
conflicts=('athas-bin')
_source_name=athas
source=("${_source_name}-${pkgver}.tar.gz::https://github.com/athasdev/athas/archive/refs/tags/v${pkgver}.tar.gz"
'0001-add-missing-js-deps-and-swift-cli-override.patch'
'0002-add-packaging-tree-sitter-bootstrap-script.patch')
sha256sums=('c9c3d3f037a296ec625c06a5055654228e16252b26054d735906b6aaa47219fe'
'2f380497a9708d316e82457120737f08c0c08c708ef70d559a4190a57d966f85'
'bc65eec041814fbab5b7e4336d633abe6975227cd630e92ddf07f69a3624e492')
_builddir="${_source_name}-${pkgver}"
latestver() {
gh api --paginate repos/athasdev/athas/releases --jq \
'.[] | select(.prerelease == false and .draft == false) | .tag_name' |
sed -nE 's/^v?([0-9]+(\.[0-9]+)*)$/\1/p' |
sort -V |
tail -1
}
prepare() {
cd "${_builddir}"
local cargo_home="${srcdir}/cargo"
rm -f scripts/bootstrap-tree-sitter-cli.sh
patch -Np1 < "${srcdir}/0001-add-missing-js-deps-and-swift-cli-override.patch"
patch -Np1 < "${srcdir}/0002-add-packaging-tree-sitter-bootstrap-script.patch"
export CARGO_HOME="${cargo_home}"
mkdir -p "${cargo_home}"
}
build() {
cd "${_builddir}"
local cargo_home="${srcdir}/cargo"
local cargo_target="${srcdir}/target"
local debug_prefix="/usr/src/debug/${pkgname}"
export CFLAGS="${CFLAGS/-flto=auto/}"
export CXXFLAGS="${CXXFLAGS/-flto=auto/}"
export LDFLAGS="${LDFLAGS/-flto=auto/}"
export CFLAGS="${CFLAGS} -ffile-prefix-map=${srcdir}=${debug_prefix}"
export CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=${srcdir}=${debug_prefix}"
export RUSTFLAGS="${RUSTFLAGS:+${RUSTFLAGS} }--remap-path-prefix=${srcdir}=${debug_prefix}"
export CARGO_HOME="${cargo_home}"
export CARGO_TARGET_DIR="${cargo_target}"
export OPENSSL_NO_VENDOR=1
export npm_config_fetch_retries=5
export npm_config_fetch_retry_maxtimeout=300000
export npm_config_fetch_retry_mintimeout=20000
export CXXFLAGS="${CXXFLAGS} -std=gnu++20"
npm install --allow-git=all --legacy-peer-deps --install-strategy=nested --ignore-scripts
bash scripts/bootstrap-tree-sitter-cli.sh "${CARCH}"
npm rebuild tree-sitter-swift
bun scripts/postinstall.ts
npx vite build
cargo build --release --manifest-path src-tauri/Cargo.toml
}
package() {
cd "${_builddir}"
local cargo_target="${srcdir}/target"
install -Dm755 "${cargo_target}/release/athas" "${pkgdir}/usr/bin/${pkgname}"
install -d "${pkgdir}/usr/lib/Athas"
cp -r src/extensions/bundled "${pkgdir}/usr/lib/Athas/"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 src-tauri/icons/32x32.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png"
install -Dm644 src-tauri/icons/128x128.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
install -Dm644 src-tauri/icons/128x128@2x.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
install -Dm644 src-tauri/icons/icon.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/${pkgname}.desktop" <<'EOF'
[Desktop Entry]
Type=Application
Name=Athas
Comment=Lightweight code editor built with Tauri
Exec=athas %U
Icon=athas
Terminal=false
Categories=Development;IDE;
EOF
}
Changes since previous scan
--- PKGBUILD @ 2026-09-02 00:02+++ PKGBUILD @ 2026-09-17 00:27@@ -1,6 +1,6 @@ # Maintainer: Juan Roa <hello@juanroa.dev> pkgname=athas-pkgver=0.12.0+pkgver=0.13.0 pkgrel=1 pkgdesc="Lightweight code editor built with React, TypeScript, and Tauri" arch=('x86_64' 'aarch64')@@ -13,8 +13,8 @@ source=("${_source_name}-${pkgver}.tar.gz::https://github.com/athasdev/athas/archive/refs/tags/v${pkgver}.tar.gz" '0001-add-missing-js-deps-and-swift-cli-override.patch' '0002-add-packaging-tree-sitter-bootstrap-script.patch')-sha256sums=('70d935e3b1993026c82368dd6cbfb206468a2ee5e7d06ad650e475b5304c7e77'- 'c6b0ea08e29128a237e7e5360ed3f37baa404b279a8179940a35602c45fac4ff'+sha256sums=('c9c3d3f037a296ec625c06a5055654228e16252b26054d735906b6aaa47219fe'+ '2f380497a9708d316e82457120737f08c0c08c708ef70d559a4190a57d966f85' 'bc65eec041814fbab5b7e4336d633abe6975227cd630e92ddf07f69a3624e492') _builddir="${_source_name}-${pkgver}"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 13:50:58 | Medium | 1 |
| 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 |