python-sncosmo-doc
LOW
maintainer Universebenzene
0 votes
scanned 2026-11-01 00:21:48.120785
Why flagged
The non-standard host delivers data files (templates) used in documentation examples, not executable code; worst case is data tampering, not code execution.
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 non-standard host delivers data files (templates) used in documentation examples, not executable code; worst case is data tampering, not code execution.
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:18
"https://c3.lbl.gov/nugent/templates/sn1a_flux.v1.2.dat.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Astro Benzene <universebenzene at sina dot com>
2
_pyname=sncosmo
3
pkgname=python-${_pyname}-doc
4
pkgver=2.12.0
5
pkgrel=1
6
pkgdesc="Documentation for SNCosmo"
7
arch=('any')
8
url="https://sncosmo.readthedocs.io"
9
license=('BSD-3-Clause')
10
makedepends=("python-${_pyname}=${pkgver}"
11
'python-numpydoc'
12
'python-sphinx_rtd_theme'
13
'python-sphinx-gallery'
14
'python-matplotlib'
15
'python-iminuit'
16
'graphviz')
17
source=("https://github.com/sncosmo/sncosmo/archive/v${pkgver}.tar.gz"
18
"https://c3.lbl.gov/nugent/templates/sn1a_flux.v1.2.dat.gz"
19
"https://c3.lbl.gov/nugent/templates/sn2p_flux.v1.2.dat.gz"
20
'doc-use-local-data.patch')
21
md5sums=('09534592973e5615c8f1d0a787fd99a9'
22
'86a80d4b02030abbeb9941131053082a'
23
'121927c70484bf2f11298465210fc1a1'
24
'f277218e6347977f675dada2ad5859ee')
25
26
prepare() {
27
cd ${srcdir}/${_pyname}-${pkgver}
28
29
cp ${srcdir}/*flux.v1.2.dat docs/_examples
30
patch -Np1 -i "${srcdir}/doc-use-local-data.patch"
31
}
32
33
build() {
34
cd ${srcdir}/${_pyname}-${pkgver}/docs
35
36
make html
37
}
38
39
package() {
40
cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
41
42
install -d -m755 "${pkgdir}/usr/share/doc/${pkgname%-doc}"
43
cp -a html "${pkgdir}/usr/share/doc/${pkgname%-doc}"
44
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.rst
45
}
46
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |