Commit Graph

12 Commits

Author SHA1 Message Date
Masahiro Fujimura
11f2a4cbee
Add GitHub Security Advisory Database (#29)
* Add GitHub Security Advisory

* Update go.mod

* Fix main.go

* Exec go mod tidy

* Change travis ci

* Fix Bugs...

* Add remobe directory

* Update review

* ghsa: Remove package level state

Signed-off-by: Simarpreet Singh <simar@linux.com>

* Add retry test

* test(ghsa): remove unneeded testdata

* refactor(ghsa): rename VersionAdvisories to Versions

* refactor(ghsa): unexport members

* refactor(ghsa): fix warnings

* refactor(ghsa): replace githubql with githubv4

* refactor(ghsa): update log messages

* refactor(ghsa): update error messages

* refactor(ghsa): unexport a function

* refactor(ghsa): make it  possible to replace wait function

* Fix empty line

Co-authored-by: Simarpreet Singh <simar@linux.com>
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
2020-02-28 08:15:34 +02:00
Masahiro Fujimura
69b1818a1c Add photon advisory (#24)
* Add photon advisory

* refactor(photon): rename

* refactor(photon): update errors

* test(photon): add require.NotNil

* fix(photon): use pkg name as dir name

* test(photon): add invalid photon_versions.json

* test(photon): add invalid CVE-ID

* test(photon): rename testdata file name

* fix(photon): rename function name

Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
2019-12-25 15:36:25 +02:00
Masahiro Fujimura
280f2c7390 Add SUSE oses support (#23)
* Add suse

* Add SUSE CVRF, Delete SUSE OVAL

* chore(dependency): update

* fix(suse): change struct

* fix(suse): change Threats to array

* fix(suse): change ProductStatus to array

* fix(suse): add omitempty
2019-12-15 21:28:23 +02:00
Masahiro Fujimura
afc3143fc1 Support Oracle Linux Security Advisory (#18)
* Add oracle vulnsrc

* Refactoring

* Review fixed

* Fix tests
2019-11-13 16:38:30 +02:00
knqyf263
a98f189278 feat(rhel_oval): support RHEL OVAL 2019-11-07 08:38:27 -08:00
Teppei Fukuda
3d158c2bf9
fix(debian): remove rejected vulnerabilities (#15)
* fix(debian): remove rejected vulnerabilities

* test(debian): remove a debug line

* debian_test: strengthen asserts with assert.NoError

Signed-off-by: Simarpreet Singh <simar@linux.com>

* debian_test: Remove un-needed subtest and add TODO

Signed-off-by: Simarpreet Singh <simar@linux.com>
2019-10-16 10:53:47 +03:00
Teppei Fukuda
99a80f64fb Support Amazon Linux AMI Security Advisory (#9)
* Support Amazon Linux AMI Security Advisory

* Update gorequest

* amazon: Add some basic testcases for Update() method.

This commmit adds a seam for Update()
to dependency inject for testing purposes.

Signed-off-by: Simarpreet Singh <simar@linux.com>

* Add more tests

* amazon_test: Fix another lint issue

Signed-off-by: Simarpreet Singh <simar@linux.com>
2019-10-12 20:02:24 -07:00
knqyf263
3e42145b06 Fix alpine tests 2019-10-10 18:45:17 +03:00
Simarpreet Singh
3905e5a59d
alpine: Add dependency injection seams for testing Update()
This also introduces a new interface for the git package for consumers to use.

Signed-off-by: Simarpreet Singh <simar@linux.com>
2019-10-07 17:28:23 -07:00
sadayuki-matsuno
cde9253fe9 available in other repositories (#5)
* use other repo

* use LookupEnv and check remote url

* fix check remote url

* fix after review
2019-10-02 11:05:57 +03:00
knqyf263
63a0ca9107 Transfer repositoriy 2019-08-18 22:47:18 -10:00
knqyf263
c05aeaf538 initial 2019-05-07 12:50:32 +09:00