gnome-shell-extension-copyous

maintainer supermario · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a minified JavaScript file (highlight.min.js) from cdnjs.cloudflare.com, a legitimate public CDN, for use as a static asset; this is a common and reasonable practice, and the file is not executed as code during build or install but rather installed as a resource for the extension.

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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a minified JavaScript file (highlight.min.js) from cdnjs.cloudflare.com, a legitimate public CDN, for use as a static asset; this is a common and reasonable practice, and the file is not executed as code during build or install but rather installed as a resource for the extension.

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:16 https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${_highlightver}/es/highlight.min.js)

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Mario Finelli <mario at finel dot li>
2
3# this should match the version listed in src/lib/common/constants.ts
4_highlightver=11.11.1
5
6pkgname=gnome-shell-extension-copyous
7pkgver=2.0.1
8pkgrel=1
9pkgdesc="Modern Clipboard Manager for GNOME"
10arch=(any)
11url=https://github.com/boerdereinar/copyous
12license=(GPL-3.0-or-later)
13depends=(gnome-shell libgda6 gsound)
14makedepends=(git jq meson nodejs pnpm uv)
15source=($pkgname::git+$url.git#tag=v$pkgver
16 https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${_highlightver}/es/highlight.min.js)
17sha256sums=('0fd69ed3188f109356521c76002775d953dcacea5fb182147bbb68774949e717'
18 '7865839949f0764d9e0a21e311a4e2c42633eeaee8ca5ec127b86438565731fe')
19
20prepare() {
21 cd $pkgname
22 git submodule update --init
23
24 # remove the install script so that it doesn't automatically call
25 # "make install"
26 sed -i '/"install":/d' package.json
27
28 pnpm install --frozen-lockfile
29}
30
31build() {
32 cd $pkgname
33
34 (
35 cd submodules/gnome-shell/subprojects/extensions-tool
36 ./generate-translations.sh
37 meson setup --buildtype=release -Dman=false build
38 meson compile -C build
39 )
40
41 RELEASE=1 make build
42}
43
44package() {
45 cd $pkgname/dist
46
47 local uuid=$(grep -Po '(?<="uuid": ")[^"]*' metadata.json)
48 local schema=$(grep -Po '(?<="settings-schema": ")[^"]*' metadata.json).gschema.xml
49 local destdir="${pkgdir}/usr/share/gnome-shell/extensions/${uuid}"
50
51 install -d "${destdir}"
52 bsdtar xvf ${uuid}.zip -C "$pkgdir/usr/share/gnome-shell/extensions/${uuid}/" --no-same-owner
53 install -Dm0644 "schemas/${schema}" -t "${pkgdir}/usr/share/glib-2.0/schemas/"
54 install -Dm0644 "${srcdir}/highlight.min.js" "${destdir}/highlight.min.js"
55
56 rm -rf "${destdir}/schemas"
57}
58
59# vim: set ts=2 sw=2 et:
60

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 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