Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tenable fetch bug #35327

Merged
merged 3 commits into from
Jul 10, 2024
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
14 changes: 9 additions & 5 deletions Packs/Tenable_io/Integrations/Tenable_io/Tenable_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,11 @@ def get_vuln_export_status(self, export_uuid: str):

"""
res = self._http_request(method='GET', url_suffix=f'/vulns/export/{export_uuid}/status',
headers=self._headers)
status = res.get('status')
chunks_available = res.get('chunks_available', [])
return status, chunks_available
headers=self._headers, ok_codes=(200, 404))
if isinstance(res, dict) and (res.get("status") == 404 or res.get('error')):
return 'ERROR', []

return res.get('status'), res.get('chunks_available') or []

def download_vulnerabilities_chunk(self, export_uuid: str, chunk_id: int):
"""
Expand Down Expand Up @@ -331,7 +332,10 @@ def get_assets_export_status(self, export_uuid):
Returns: The assets' chunk id.

"""
res = self._http_request(method='GET', url_suffix=f'assets/export/{export_uuid}/status', headers=self._headers)
res = self._http_request(method='GET', url_suffix=f'assets/export/{export_uuid}/status', headers=self._headers,
ok_codes=(200, 404))
if isinstance(res, dict) and (res.get("status") == 404 or res.get('error')):
return 'ERROR', []
return res.get('status'), res.get('chunks_available')

def download_assets_chunk(self, export_uuid: str, chunk_id: int):
Expand Down
6 changes: 6 additions & 0 deletions Packs/Tenable_io/ReleaseNotes/2_2_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Tenable Vulnerability Management (formerly Tenable.io)

- Fixed an issue where the ***fetch-assets*** command did not pull new assets or vulnerabilities.
2 changes: 1 addition & 1 deletion Packs/Tenable_io/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Tenable Vulnerability Management (formerly Tenable.io)",
"description": "A comprehensive asset centric solution to accurately track resources while accommodating dynamic assets such as cloud, mobile devices, containers and web applications.",
"support": "xsoar",
"currentVersion": "2.2.4",
"currentVersion": "2.2.5",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading