Michael Pöhn
d815a64fdb
scanner: filter urlopen schemes, mute bandit
2022-10-06 12:09:07 +02:00
Michael Pöhn
b7233dfb2e
ignore cache write test case on older python versions
2022-10-06 12:09:07 +02:00
Michael Pöhn
59b1899d79
scanner: switch form iso8601 to unix timestamp for python3.5 support
2022-10-06 12:09:07 +02:00
Michael Pöhn
9560ed955c
avoid running into native-date object issue
...
Seem I ran into this issue: https://bugs.python.org/issue47228 This
change tries to fix it by using utcnow insteas of astimezone.
2022-10-06 12:09:07 +02:00
Michael Pöhn
7933623e93
fix pydocstyle lint errors
2022-10-06 12:09:07 +02:00
Michael Pöhn
036b788424
move suss defaults into scanner.py
...
As discussed with _hc, we're going to keep the default values for
SUSS inside the python code for now. To avoid compilcated packaging
issues. Once fdroidserver does not have to support python verison older
than 3.7 we can utilize to `importlib.resources` for shipping these
defaults as separate file.
2022-10-06 12:09:07 +02:00
Michael Pöhn
0921863fa6
scanner: update suss defaults after removal of allowlisted feature
2022-10-06 12:09:07 +02:00
Michael Pöhn
6899c22f48
scanner: remove allowlisted from scan_source
2022-10-06 12:09:06 +02:00
Michael Pöhn
a8bcaa3d70
scanner: implement caching rules for suss
2022-10-06 12:09:06 +02:00
Michael Pöhn
bfcc30b854
add --refresh to scanner
2022-10-06 12:09:06 +02:00
Michael Pöhn
4a38908bd7
make cachedir subdirectories pick their place correctly based on parent folder
2022-10-06 12:09:06 +02:00
Michael Pöhn
1e6694112a
rename to suss
2022-10-06 12:09:06 +02:00
Michael Pöhn
dc1a2db3f4
scanner: use Path.resovle instead of undocumented absolute()
2022-10-06 12:09:06 +02:00
Michael Pöhn
c9b59b525d
fix timestamp check; remove dead code
2022-10-06 12:09:05 +02:00
Michael Pöhn
c10633eac5
convert fdroid scanner --exodus to SignatureDataController
2022-10-06 12:08:26 +02:00
Michael Pöhn
d5ef1b2e95
add --clear-cache option to scanner
2022-10-06 12:08:26 +02:00
Michael Pöhn
e4b54fe4a7
move NON_FREE_GRADLE_LINES to signature definition files
2022-10-06 12:08:26 +02:00
Michael Pöhn
9c5b35742d
use ScannerTool for basic cacheing and scanning
2022-10-06 12:08:26 +02:00
Michael Pöhn
f56b1f3012
basic downloading for scan_binary signatures
2022-10-06 12:08:23 +02:00
Jochen Sprickerhof
82355b8559
Merge branch 'linsui-master-patch-90027' into 'master'
...
fix typo
See merge request fdroid/fdroidserver!1201
2022-10-05 06:15:53 +00:00
linsui
5354661fb4
fix typo
2022-10-05 06:15:53 +00:00
Hans-Christoph Steiner
cfd426cc1f
Merge branch 'scan_more_binary' into 'master'
...
Support more file types in get_embedded_classes
Closes #999
See merge request fdroid/fdroidserver!1123
2022-09-30 18:09:32 +00:00
Hans-Christoph Steiner
3de6063a01
scanner: open DEX/ZIP by file magic; throw errors on bad filenames
2022-09-30 17:56:15 +00:00
Hans-Christoph Steiner
aa190d532f
scanner.TestCase: manually convert to black code format
...
I manually changed some code structures to give a decent code format.
2022-09-30 17:56:15 +00:00
Jochen Sprickerhof
4197455436
Support more file types in get_embedded_classes
...
Closes : #999
2022-09-30 17:56:15 +00:00
Hans-Christoph Steiner
6a4b7ba4c1
Merge branch 'pyproject.toml' into 'master'
...
Move lint tools configuration to pyproject.toml
See merge request fdroid/fdroidserver!1196
2022-09-30 17:55:42 +00:00
FestplattenSchnitzel
e4d16ec1e8
Move lint tools configuration to pyproject.toml
...
This commit removes the mypy CI job, since there are no or few type
hints in the codebase and it failed on unrelated changes in the past.
It might be reintroduced when type hints get added.
2022-09-30 17:53:31 +00:00
Hans-Christoph Steiner
42cb31039e
Merge branch 'fix_status_deploy' into 'master'
...
Sync all status files
See merge request fdroid/fdroidserver!1199
2022-09-29 17:54:22 +00:00
Jochen Sprickerhof
96f8284a50
Sync all status files
2022-09-29 19:41:12 +02:00
Hans-Christoph Steiner
244273e58e
Merge branch 'clojars' into 'master'
...
scanner: allow repo.clojars.org
See merge request fdroid/fdroidserver!1197
2022-09-26 18:58:28 +00:00
linsui
ec69be04ce
scanner: allow repo.clojars.org
2022-09-26 18:58:15 +00:00
Hans-Christoph Steiner
bd6689a75d
Merge branch 'editorconfig' into 'master'
...
Add .editorconfig
See merge request fdroid/fdroidserver!1194
2022-09-20 15:12:15 +00:00
FestplattenSchnitzel
ecc9ad0e8c
Add .editorconfig
...
See https://editorconfig.org/
2022-09-20 14:08:04 +00:00
Hans-Christoph Steiner
e239a600a3
Merge branch 'fix_v4_signing' into 'master'
...
Work around old apksigner on f-droid.org publish server
See merge request fdroid/fdroidserver!1192
2022-09-20 13:58:42 +00:00
Jochen Sprickerhof
cf228d35a3
Work around old apksigner on f-droid.org publish server
2022-09-20 13:58:41 +00:00
Michael Pöhn
2b5ac31bf8
Merge branch 'test_getref' into 'master'
...
Add test for git getref
Closes #1040
See merge request fdroid/fdroidserver!1191
2022-09-15 11:48:00 +00:00
Jochen Sprickerhof
f96f247095
Add test for git getref
2022-09-15 13:32:11 +02:00
Michael Pöhn
603c8c5cd4
Merge branch 'fix_getref' into 'master'
...
Use old python-git exception API for getref
See merge request fdroid/fdroidserver!1190
2022-09-15 08:35:10 +00:00
Jochen Sprickerhof
0f48294a6e
Use old python-git exception API for getref
...
The is_valid_object method is not even in Debian bullseye.
2022-09-15 07:44:02 +02:00
Michael Pöhn
2aebc48a65
Merge branch 'linsui-master-patch-61703' into 'master'
...
scanner: add some rules
See merge request fdroid/fdroidserver!1150
2022-09-14 15:02:38 +00:00
linsui
ac96e43e13
scanner: add some rules
2022-09-14 15:02:37 +00:00
Jochen Sprickerhof
0a157d3f17
Merge branch 'fix_check_updates_expected' into 'master'
...
[lint] Fix comparisons in check_updates_expected
See merge request fdroid/fdroidserver!1188
2022-09-14 10:10:34 +00:00
FestplattenSchnitzel
580ce85412
[lint] Fix comparisons in check_updates_expected
2022-09-14 10:10:20 +00:00
Jochen Sprickerhof
7d94055830
Merge branch 'Adding-IPFS-CID-to_Index' into 'master'
...
Addition of IPFS CID onto Index-v2.json file
Closes #976
See merge request fdroid/fdroidserver!1154
2022-09-14 09:28:28 +00:00
pmmayero
0ad45a94a8
Addition of IPFS CIDv1 to Index
...
IPFS CIDv1 is only generated for APKs and "repo files"
2022-09-14 09:28:02 +00:00
Michael Pöhn
5e31f23a96
Merge branch 'fix_getref' into 'master'
...
git.getref: use python-git
See merge request fdroid/fdroidserver!1186
2022-09-14 09:25:28 +00:00
Jochen Sprickerhof
7b31535c25
git.getref: use python-git
...
Fixes a "warning: refname is ambiguous." problem:
$ git clone https://gitlab.com/joshua.tee/wx.git
$ cd wx
$ git rev-parse 55699
warning: refname '55699' is ambiguous.
8760bb0ce7 (note_1090707468)
2022-09-14 09:12:02 +00:00
Jochen Sprickerhof
7aa4b2678b
Merge branch 'check_no_updates_expected' into 'master'
...
[lint] Complain if checking for updates makes no sense
See merge request fdroid/fdroidserver!1187
2022-09-12 13:51:44 +00:00
FestplattenSchnitzel
d32e53798d
[lint] Check if checking for updates makes no sense
2022-09-12 12:27:38 +02:00
Hans-Christoph Steiner
a3b7ba4eed
Merge branch 'dump_internal_metadata_format' into 'master'
...
Cleanup tests/dump_internal_metadata_format.py
See merge request fdroid/fdroidserver!1184
2022-09-08 19:54:20 +00:00