cgit-git

maintainer eworm · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package builds from the project's own git repository hosted on a non-whitelisted but legitimate and project-associated domain (git.zx2c4.com), which is normal for AUR packages; the source is not a prebuilt executable or remote code, and the host, while not standard, is plausibly official.

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 builds from the project's own git repository hosted on a non-whitelisted but legitimate and project-associated domain (git.zx2c4.com), which is normal for AUR packages; the source is not a prebuilt executable or remote code, and the host, while not standard, is plausibly official.

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:31 source=('git+https://git.zx2c4.com/cgit.git'

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Christian Hesse <mail@eworm.de>
2# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3# Contributor: Lukas Fleischer <archlinux at cryptocrack dot de>
4# Contributor: Patrick Palka <patrick@parcs.ath.cx>
5# Contributor: Loui Chang <louipc.ist at gmail com>
6# Contributor: Andreas Baumann <abaumann at yahoo dot com>
7
8pkgname=cgit-git
9pkgver=1.2.3.r53.g907134b
10pkgrel=1
11pkgdesc='A web interface for git written in plain C - git checkout'
12arch=('i686' 'x86_64')
13url='https://git.zx2c4.com/cgit/'
14license=('GPL-2.0-only')
15depends=('openssl' 'luajit')
16makedepends=('git' 'zlib' 'curl' 'asciidoc')
17optdepends=('groff: about page using man page syntax'
18 'python-pygments: syntax highlighting support'
19 'python-docutils: about page formatted with reStructuredText'
20 'python-markdown: about page formatted with markdown'
21 'lua51-luaossl: for lua filters'
22 'gzip: gzip compressed snapshots'
23 'bzip2: bzip2 compressed snapshots'
24 'lzip: lzip compressed snapshots'
25 'xz: xz compressed snapshots'
26 'zstd: zstd compressed snapshots'
27 'mime-types: serve file with correct content-type header')
28conflicts=('cgit')
29provides=('cgit')
30install=cgit.install
31source=('git+https://git.zx2c4.com/cgit.git'
32 'git+https://github.com/git/git.git'
33 'tmpfiles.conf'
34 'apache.example.conf')
35sha256sums=('SKIP'
36 'SKIP'
37 '4004b72d433e5810b046fc6019171a11a0dae3e9c6b29a44f16ed41705c46c3d'
38 '89927d462c0504863c163eb8a210e5d65db30ee6e4300ff6a2f92460e4f20a62')
39
40pkgver() {
41 cd cgit/
42
43 if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
44 printf '%s.r%s.g%s' \
45 "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
46 "$(git rev-list --count ${GITTAG}..)" \
47 "$(git rev-parse --short HEAD)"
48 else
49 printf '0.r%s.g%s' \
50 "$(git rev-list --count master)" \
51 "$(git rev-parse --short HEAD)"
52 fi
53}
54
55prepare() {
56 cd cgit/
57
58 git config --file=.gitmodules submodule.git.url ../git/
59 git submodule init
60 git -c protocol.file.allow=always submodule update
61}
62
63build() {
64 cd cgit/
65
66 make
67 make doc-man
68}
69
70check() {
71 cd cgit/
72
73 make test
74}
75
76package() {
77 cd cgit/
78
79 make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR="${pkgdir}" prefix=/usr install install-man
80
81 install -vDm0644 "${srcdir}/tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/cgit.conf"
82 install -vDm0644 "${srcdir}/apache.example.conf" "${pkgdir}/etc/webapps/cgit/apache.example.conf"
83 install -d "${pkgdir}/usr/lib/cgit"
84 mv "${pkgdir}/usr/share/webapps/cgit/cgit.cgi" "${pkgdir}/usr/lib/cgit"
85 ln -sf ../../../lib/cgit/cgit.cgi "${pkgdir}/usr/share/webapps/cgit/cgit.cgi"
86}
87
88

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