-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Security Center Hosts API Support (#866)
* Added Hosts API support * Added Security Center Hosts API Support #614
- Loading branch information
1 parent
ef26d74
commit da0355d
Showing
11 changed files
with
630 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,26 +30,23 @@ jobs: | |
run: uv run ruff check tenable --exit-zero | ||
|
||
- name: Run unit tests | ||
run: uv run pytest --vcr-record=none tests --cov-report=term-missing | ||
run: uv run pytest --vcr-record=none tests --cov-report=term-missing --cov-report=xml:coverage.xml --cov=tenable | ||
|
||
- name: Upload Coverage | ||
uses: orgoro/[email protected] | ||
with: | ||
thresholdNew: 0.9 | ||
thresholdModified: 0.8 | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
code-assessments: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- uses: astral-sh/setup-uv@v4 | ||
|
||
- name: Run coverage | ||
run: uv tool run coverage xml coverage.xml | ||
|
||
- name: Upload Coverage | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
python-version: "3.10" | ||
- name: Run pip-audit | ||
run: uv export --format requirements-txt | uv tool run pip-audit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ Jenkinsfile | |
/ex_*.py | ||
.idea | ||
/dist | ||
__MACOSX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. automodule:: tenable.sc.hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.