Bernhard E. Reiter
0c9516ac08
Change release action to use elder Ubuntu runner ( #461 )
...
* use `ubuntu-20.04` so we get binaries that are more
compatible with elder GNU/Linux distribution, because
go binaries link to glibc (for some operating system operations
like dns).
resolve #456
2023-09-26 09:37:12 +02:00
Sascha L. Teichmann
fca3f5bb9b
Fix stats unit test.
2023-09-25 23:32:19 +02:00
Sascha L. Teichmann
b0d7dbb387
Add unit test for stats.
2023-09-25 23:23:28 +02:00
Sascha L. Teichmann
6b07885848
Fix copyright headers. Make staticcheck happy.
2023-09-25 21:19:41 +02:00
Sascha L. Teichmann
52476f8560
use defer to restore original args.
2023-09-25 20:12:17 +02:00
Sascha L. Teichmann
1854cc4c58
Add test to trigger help output in second pass in command line parsing.
2023-09-25 18:15:09 +02:00
Sascha L. Teichmann
abce4e7f78
Add test for second pass command line passing.
2023-09-25 17:54:35 +02:00
JanHoefelmeyer
62290215ec
Test os.exit and log.Fatalf in options_test.go
2023-09-25 14:17:22 +02:00
Sascha L. Teichmann
21fbd401b7
Cosmetics
2023-09-25 13:05:53 +02:00
JanHoefelmeyer
1f7d5ada14
Formatted TestCreateFormFile()
2023-09-25 11:31:22 +02:00
JanHoefelmeyer
3de42e746d
Add function documentation to certs_test.go
2023-09-25 11:20:58 +02:00
JanHoefelmeyer
17945d67ac
Update filter_test.go's function documentation
2023-09-25 11:19:32 +02:00
JanHoefelmeyer
22e6d49f3f
Updated mime_test.go's function documentation
2023-09-25 11:16:47 +02:00
JanHoefelmeyer
b06c316ee0
Add minimum documentation to some functions
2023-09-25 11:15:01 +02:00
JanHoefelmeyer
b14d775422
Add a minimum of documentation to test functions
2023-09-25 11:13:13 +02:00
JanHoefelmeyer
a495416882
Expanded tests where missing (models)
2023-09-25 11:05:59 +02:00
JanHoefelmeyer
be50b7fc3a
Introduce actual tests where missing
2023-09-25 11:03:51 +02:00
JanHoefelmeyer
e4c636fe41
Complete Certs test
2023-09-19 16:11:23 +02:00
JanHoefelmeyer
2a82c53585
Merge pull request #441 from csaf-poc/fix_missing
...
Checker: Fix checking of missing files
2023-09-19 15:52:05 +02:00
cintek
b3332cf288
Merge pull request #5 from s-l-teichmann/fix-lint
...
Fix typo in doc comment
2023-09-13 17:05:30 +02:00
Sascha L. Teichmann
20b2bd27b3
Fix typo in comment.
2023-09-13 14:35:22 +02:00
Christoph Klassen
37cdda7c42
dont use pointer for lists of elements
2023-09-13 08:55:28 +02:00
Christoph Klassen
c8f1361c52
added validation for vulnerabilites
2023-09-12 17:26:28 +02:00
Christoph Klassen
b5db976f05
completed validation of product tree
2023-09-12 16:21:00 +02:00
cintek
f145a633c1
Merge pull request #4 from s-l-teichmann/cleanup-validation
...
Simplify validation code
2023-09-12 15:38:09 +02:00
cintek
094fe37026
Merge branch 'main' into cleanup-validation
2023-09-12 15:37:51 +02:00
Christoph Klassen
bdd7f24b31
fix: product tree properties
2023-09-11 21:31:45 +02:00
Sascha L. Teichmann
4da9f67e2e
Distribute the validation to the types to reduce the overall complexity.
2023-09-09 21:15:25 +02:00
Christoph Klassen
ed42f193d1
added function to validate ProductTree
2023-09-08 20:04:04 +02:00
Christoph Klassen
f868b13c24
added function to validate document
2023-09-08 16:24:50 +02:00
Christoph Klassen
5a3661e81b
use type FileHashValue
2023-09-08 14:52:48 +02:00
JanHoefelmeyer
3a7b411789
formatting
2023-09-08 13:34:45 +02:00
JanHoefelmeyer
daab24eb2f
Corrected wrong error requirement
2023-09-08 13:26:38 +02:00
JanHoefelmeyer
2e129b9dc8
Clean up certs_test.go a bit
2023-09-08 11:00:50 +02:00
JanHoefelmeyer
a217f88ea1
Many unittests for internal folder
2023-09-08 09:40:41 +02:00
Christoph Klassen
dc41aae07f
use up-to-date schema for CVSS 3.0
2023-09-07 08:48:34 +02:00
Christoph Klassen
4206c2e4b3
only using enums from CVSS 3.0
2023-09-06 15:51:47 +02:00
Christoph Klassen
b03df5508a
added explanation for cvss3VectorStringPattern
2023-09-06 15:44:56 +02:00
Christoph Klassen
f45d273af9
fixed versionPattern
2023-09-05 19:53:48 +02:00
cintek
58bad8a6cf
Merge pull request #3 from s-l-teichmann/unexport-patterns
...
Unexport patterns
2023-09-05 19:47:32 +02:00
Sascha L. Teichmann
22ef2a925e
Unexport patterns
2023-09-05 19:14:57 +02:00
Christoph Klassen
7f36ecb48c
added missing types for CVSS2 + changed variable names for more consistency
2023-09-05 16:41:52 +02:00
Christoph Klassen
3acabdf73b
reusing TLPLabel and Category from models.go
2023-09-04 17:41:44 +02:00
Christoph Klassen
4fc2fd9bf2
added omitempty for cvss structs
2023-09-04 16:06:47 +02:00
Christoph Klassen
f59a8cc7a9
use generated types
2023-09-04 15:58:28 +02:00
cintek
12d24647c6
Merge pull request #2 from s-l-teichmann/generate-cvss-enums
...
Add generator for CVSS enums
2023-09-04 15:10:48 +02:00
cintek
11c1a2cfbb
Merge pull request #1 from s-l-teichmann/close-load-advisory
...
Move defer f.Close to right position.
2023-09-04 15:10:22 +02:00
Sascha L. Teichmann
e821683423
Add generator for CVSS enums
2023-09-02 17:38:12 +02:00
Sascha L. Teichmann
96608a07fe
Move defer.Close to right position.
2023-09-02 17:03:46 +02:00
Christoph Klassen
a1ea10baf9
feat: added model for a CSAF advisory
2023-09-01 20:14:18 +02:00