Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Install Poetry
- name: Install Poetry # Used in the generate.sh script
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.3"
poetry-version: "2.1.3"

- uses: actions/checkout@v4
- name: Generate new sdk
Expand All @@ -37,12 +37,6 @@ jobs:
echo "changes=false" >> $GITHUB_OUTPUT
fi

- name: Test with pytest
if: steps.generate.outputs.changes == 'true'
env:
VULNCHECK_API_TOKEN: ${{ secrets.VULNCHECK_API_TOKEN }}
run: make test

- name: Get current date
if: steps.generate.outputs.changes == 'true'
id: date
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "2.1.3"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
run: make deps

- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
run: make lint

- name: Test with pytest
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.3"
poetry-version: "2.1.3"

- name: Install dependencies
run: make deps
- name: Test with pytest
env:
VULNCHECK_API_TOKEN: ${{ secrets.VULNCHECK_API_TOKEN }}
Expand Down
48 changes: 48 additions & 0 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.12.0
7.14.0
17 changes: 14 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.PHONY: deps
deps:
poetry install

.PHONY: lint
lint:
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

#### Build Commands ####

.PHONY: generate
Expand All @@ -12,15 +23,15 @@ build:

.PHONY: test-integration
test-integration:
pytest $(CURDIR)/tests/
poetry run pytest $(CURDIR)/tests/

.PHONY: test
test:
pytest $(CURDIR)/test/ $(CURDIR)/tests/
poetry run pytest $(CURDIR)/test/ $(CURDIR)/tests/

.PHONY: coverage
coverage:
pytest --junitxml=coverage.xml \
poetry run pytest --junitxml=coverage.xml \
--cov-report=term-missing:skip-covered \
--cov=vulncheck_sdk \
$(CURDIR)/tests/ \
Expand Down
34 changes: 34 additions & 0 deletions docs/AdvisoryAdvantech.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# AdvisoryAdvantech


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**advisory_id** | **str** | | [optional]
**cve** | **List[str]** | | [optional]
**date_added** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_advantech import AdvisoryAdvantech

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryAdvantech from a JSON string
advisory_advantech_instance = AdvisoryAdvantech.from_json(json)
# print the JSON string representation of the object
print(AdvisoryAdvantech.to_json())

# convert the object into a dict
advisory_advantech_dict = advisory_advantech_instance.to_dict()
# create an instance of AdvisoryAdvantech from a dict
advisory_advantech_from_dict = AdvisoryAdvantech.from_dict(advisory_advantech_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/AdvisoryAxis.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**date_added** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example
Expand Down
34 changes: 34 additions & 0 deletions docs/AdvisoryCrowdSec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# AdvisoryCrowdSec


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cve** | **List[str]** | | [optional]
**date_added** | **str** | | [optional]
**first_seen** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_crowd_sec import AdvisoryCrowdSec

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryCrowdSec from a JSON string
advisory_crowd_sec_instance = AdvisoryCrowdSec.from_json(json)
# print the JSON string representation of the object
print(AdvisoryCrowdSec.to_json())

# convert the object into a dict
advisory_crowd_sec_dict = advisory_crowd_sec_instance.to_dict()
# create an instance of AdvisoryCrowdSec from a dict
advisory_crowd_sec_from_dict = AdvisoryCrowdSec.from_dict(advisory_crowd_sec_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


36 changes: 36 additions & 0 deletions docs/AdvisoryFesto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# AdvisoryFesto


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**csaf_url** | **str** | | [optional]
**cve** | **List[str]** | | [optional]
**date_added** | **str** | | [optional]
**id** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_festo import AdvisoryFesto

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryFesto from a JSON string
advisory_festo_instance = AdvisoryFesto.from_json(json)
# print the JSON string representation of the object
print(AdvisoryFesto.to_json())

# convert the object into a dict
advisory_festo_dict = advisory_festo_instance.to_dict()
# create an instance of AdvisoryFesto from a dict
advisory_festo_from_dict = AdvisoryFesto.from_dict(advisory_festo_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


36 changes: 36 additions & 0 deletions docs/AdvisoryGlibc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# AdvisoryGlibc


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**affected** | **str** | | [optional]
**cve** | **List[str]** | | [optional]
**date_added** | **str** | | [optional]
**fixed** | **str** | | [optional]
**id** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_glibc import AdvisoryGlibc

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryGlibc from a JSON string
advisory_glibc_instance = AdvisoryGlibc.from_json(json)
# print the JSON string representation of the object
print(AdvisoryGlibc.to_json())

# convert the object into a dict
advisory_glibc_dict = advisory_glibc_instance.to_dict()
# create an instance of AdvisoryGlibc from a dict
advisory_glibc_from_dict = AdvisoryGlibc.from_dict(advisory_glibc_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


35 changes: 35 additions & 0 deletions docs/AdvisoryKunbus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# AdvisoryKunbus


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cve** | **List[str]** | | [optional]
**date_added** | **str** | | [optional]
**id** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_kunbus import AdvisoryKunbus

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryKunbus from a JSON string
advisory_kunbus_instance = AdvisoryKunbus.from_json(json)
# print the JSON string representation of the object
print(AdvisoryKunbus.to_json())

# convert the object into a dict
advisory_kunbus_dict = advisory_kunbus_instance.to_dict()
# create an instance of AdvisoryKunbus from a dict
advisory_kunbus_from_dict = AdvisoryKunbus.from_dict(advisory_kunbus_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/AdvisoryNetApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**references** | **List[str]** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example
Expand Down
37 changes: 37 additions & 0 deletions docs/AdvisoryNexpose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# AdvisoryNexpose


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cve** | **List[str]** | | [optional]
**cvss_score** | **str** | | [optional]
**cvss_vector** | **str** | | [optional]
**date_added** | **str** | | [optional]
**identifier** | **str** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_nexpose import AdvisoryNexpose

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryNexpose from a JSON string
advisory_nexpose_instance = AdvisoryNexpose.from_json(json)
# print the JSON string representation of the object
print(AdvisoryNexpose.to_json())

# convert the object into a dict
advisory_nexpose_dict = advisory_nexpose_instance.to_dict()
# create an instance of AdvisoryNexpose from a dict
advisory_nexpose_from_dict = AdvisoryNexpose.from_dict(advisory_nexpose_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/AdvisoryPaperCut.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**references** | **List[str]** | | [optional]
**summary** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example
Expand Down
36 changes: 36 additions & 0 deletions docs/AdvisoryQQID.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# AdvisoryQQID


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cve** | **List[str]** | | [optional]
**cvss3_score** | **str** | | [optional]
**cvss_score** | **str** | | [optional]
**date_added** | **str** | | [optional]
**qid** | **str** | | [optional]
**title** | **str** | | [optional]
**updated_at** | **str** | | [optional]
**url** | **str** | | [optional]

## Example

```python
from vulncheck_sdk.models.advisory_qqid import AdvisoryQQID

# TODO update the JSON string below
json = "{}"
# create an instance of AdvisoryQQID from a JSON string
advisory_qqid_instance = AdvisoryQQID.from_json(json)
# print the JSON string representation of the object
print(AdvisoryQQID.to_json())

# convert the object into a dict
advisory_qqid_dict = advisory_qqid_instance.to_dict()
# create an instance of AdvisoryQQID from a dict
advisory_qqid_from_dict = AdvisoryQQID.from_dict(advisory_qqid_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading