python-sncosmo-doc
maintainer Universebenzene
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
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-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 |