Skip to content

Commit

Permalink
Aud demisto/auto update docker staging branch 1402 (demisto#36505)
Browse files Browse the repository at this point in the history
* Updated docker image to demisto/googleapi-python3:1.0.0.112316. PR batch demisto#2/2 (demisto#36495)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/googleapi-python3:1.0.0.112316. PR batch #1/2 (demisto#36494)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/google-cloud-translate:1.0.0.112239. PR batch #1/1 (demisto#36493)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/pcap-http-extractor:1.0.0.112272. PR batch #1/1 (demisto#36492)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/xpanse-ml-ev2:1.0.0.112461. PR batch #1/1 (demisto#36491)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/readpdf:1.0.0.112283. PR batch #1/1 (demisto#36490)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/unzip:1.0.0.112289. PR batch #1/1 (demisto#36489)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/bigquery:1.0.0.112225. PR batch #1/1 (demisto#36486)

Co-authored-by: root <root@1e2de18e0cc3>
Co-authored-by: Maya Goldman <[email protected]>

* Updated docker image to demisto/google-kms:1.0.0.112242. PR batch #1/1 (demisto#36485)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/ssdeep:1.0.0.112284. PR batch #1/1 (demisto#36484)

Co-authored-by: root <root@1e2de18e0cc3>

* Updated docker image to demisto/qrcode:1.0.0.112357. PR batch #1/1 (demisto#36483)

Co-authored-by: root <root@1e2de18e0cc3>

* demisto/python3-deb:3.11.10.112166 | 0-100 | PR batch #1/1 (demisto#36488)

* Updated docker image to demisto/python3-deb:3.11.10.112166. PR batch #1/1

* ruff py datetime-timezone-utc (UP017)

* ruff py datetime-timezone-utc (UP017)

* ruff py datetime-timezone-utc (UP017)

* exclude from native

---------

Co-authored-by: root <root@1e2de18e0cc3>
Co-authored-by: mayagoldman <[email protected]>
Co-authored-by: Maya Goldman <[email protected]>

* demisto/google-api-py3:1.0.0.112317 | 0-100 | PR batch #1/1 (demisto#36487)

* Updated docker image to demisto/google-api-py3:1.0.0.112317. PR batch #1/1

* ruff py datetime-timezone-utc (UP017)

* ruff py datetime-timezone-utc (UP017)

* exclude from native

---------

Co-authored-by: root <root@1e2de18e0cc3>
Co-authored-by: mayagoldman <[email protected]>
Co-authored-by: Maya Goldman <[email protected]>

* updated release notes

* Update 1_15_73.md

* remove palce holder

---------

Co-authored-by: content-bot <[email protected]>
Co-authored-by: root <root@1e2de18e0cc3>
  • Loading branch information
3 people authored Oct 13, 2024
1 parent e35403e commit 89693b2
Show file tree
Hide file tree
Showing 76 changed files with 235 additions and 69 deletions.
10 changes: 5 additions & 5 deletions Packs/ArcherRSA/Integrations/ArcherV2/ArcherV2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
from datetime import timezone
from datetime import UTC, datetime
import random

import dateparser
Expand Down Expand Up @@ -74,7 +74,7 @@ def parser(
assert isinstance(
date_obj, datetime
), f"Could not parse date {date_str}" # MYPY Fix
return date_obj.replace(tzinfo=timezone.utc)
return date_obj.replace(tzinfo=UTC)


def get_token_soap_request(user, password, instance, domain=None):
Expand Down Expand Up @@ -1708,14 +1708,14 @@ def fetch_incidents(
# Build incidents
incidents = []
# Encountered that sometimes, somehow, on of next_fetch is not UTC.
last_fetch_time = from_time.replace(tzinfo=timezone.utc)
last_fetch_time = from_time.replace(tzinfo=UTC)
next_fetch = last_fetch_time
for record in records:
incident, incident_created_time = client.record_to_incident(
record, app_id, fetch_param_id
)
# Encountered that sometimes, somehow, incident_created_time is not UTC.
incident_created_time = incident_created_time.replace(tzinfo=timezone.utc)
incident_created_time = incident_created_time.replace(tzinfo=UTC)
if last_fetch_time < incident_created_time:
incidents.append(incident)
if next_fetch < incident_created_time:
Expand Down Expand Up @@ -1743,7 +1743,7 @@ def get_fetch_time(last_fetch: dict, first_fetch_time: str) -> datetime:
start_fetch = parser(next_run)
else:
start_fetch, _ = parse_date_range(first_fetch_time)
start_fetch.replace(tzinfo=timezone.utc)
start_fetch.replace(tzinfo=UTC)
return start_fetch


Expand Down
2 changes: 1 addition & 1 deletion Packs/ArcherRSA/Integrations/ArcherV2/ArcherV2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ script:
- arguments: []
description: Prints the Archer's integration cache.
name: archer-print-cache
dockerimage: demisto/python3-deb:3.10.14.93258
dockerimage: demisto/python3-deb:3.11.10.112166
isfetch: true
script: ''
subtype: python3
Expand Down
18 changes: 9 additions & 9 deletions Packs/ArcherRSA/Integrations/ArcherV2/ArcherV2_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import copy
from datetime import datetime, timezone
from datetime import datetime, UTC
import pytest
from CommonServerPython import DemistoException
import demistomock as demisto
Expand Down Expand Up @@ -561,7 +561,7 @@ def test_record_to_incident(self):
record = copy.deepcopy(INCIDENT_RECORD)
record['raw']['Field'][1]['@xmlConvertedValue'] = '2018-03-26T10:03:00Z'
incident, incident_created_time = client.record_to_incident(record, 75, '305')
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=timezone.utc)
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=UTC)
assert incident['name'] == 'RSA Archer Incident: 227602'
assert incident['occurred'] == '2018-03-26T10:03:00Z'

Expand Down Expand Up @@ -778,7 +778,7 @@ def test_record_to_incident_europe_time(self):
incident['raw']['Field'][1]['@xmlConvertedValue'] = '2018-03-26T10:03:00Z'
incident['record']['Date/Time Reported'] = "26/03/2018 10:03 AM"
incident, incident_created_time = client.record_to_incident(INCIDENT_RECORD, 75, '305')
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=timezone.utc)
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=UTC)
assert incident['occurred'] == '2018-03-26T10:03:00Z'

def test_record_to_incident_american_time(self):
Expand All @@ -800,7 +800,7 @@ def test_record_to_incident_american_time(self):
incident, incident_created_time = client.record_to_incident(
INCIDENT_RECORD, 75, '305'
)
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=timezone.utc)
assert incident_created_time == datetime(2018, 3, 26, 10, 3, tzinfo=UTC)
assert incident['occurred'] == '2018-03-26T10:03:00Z'

def test_fetch_time_change(self, mocker):
Expand Down Expand Up @@ -832,7 +832,7 @@ def test_fetch_time_change(self, mocker):
mocker.patch.object(client, 'search_records', return_value=([record], {}))
incidents, next_fetch = fetch_incidents(client, params, last_fetch, '305')
assert last_fetch < next_fetch
assert next_fetch == datetime(2018, 4, 3, 10, 3, tzinfo=timezone.utc)
assert next_fetch == datetime(2018, 4, 3, 10, 3, tzinfo=UTC)
assert incidents[0]['occurred'] == date_time_reported

def test_two_fetches(self, mocker):
Expand Down Expand Up @@ -867,11 +867,11 @@ def test_two_fetches(self, mocker):
)
incidents, next_fetch = fetch_incidents(client, params, last_fetch, '305')
assert last_fetch < next_fetch
assert next_fetch == datetime(2020, 3, 18, 10, 30, tzinfo=timezone.utc)
assert next_fetch == datetime(2020, 3, 18, 10, 30, tzinfo=UTC)
assert incidents[0]['occurred'] == '2020-03-18T10:30:00.000Z'
incidents, next_fetch = fetch_incidents(client, params, next_fetch, '305')
assert last_fetch < next_fetch
assert next_fetch == datetime(2020, 3, 18, 15, 30, tzinfo=timezone.utc)
assert next_fetch == datetime(2020, 3, 18, 15, 30, tzinfo=UTC)
assert incidents[0]['occurred'] == '2020-03-18T15:30:00.000Z'

def test_fetch_got_old_incident(self, mocker):
Expand Down Expand Up @@ -958,12 +958,12 @@ def test_same_record_returned_in_two_fetches(self, mocker):
first_fetch = parser('2021-02-24T08:45:55Z')
incidents, first_next_fetch = fetch_incidents(client, params, first_fetch, field_time_id)
assert first_fetch < first_next_fetch
assert first_next_fetch == datetime(2021, 2, 25, 8, 45, 55, 977000, tzinfo=timezone.utc)
assert first_next_fetch == datetime(2021, 2, 25, 8, 45, 55, 977000, tzinfo=UTC)
assert incidents[0]['occurred'] == '2021-02-25T08:45:55.977Z'
# first_next_fetch_dt simulates the set to last_run done in fetch-incidents
first_next_fetch_dt = parser(first_next_fetch.strftime(OCCURRED_FORMAT))
incidents, second_next_fetch = fetch_incidents(client, params, first_next_fetch_dt, field_time_id)
assert first_next_fetch == datetime(2021, 2, 25, 8, 45, 55, 977000, tzinfo=timezone.utc)
assert first_next_fetch == datetime(2021, 2, 25, 8, 45, 55, 977000, tzinfo=UTC)
assert not incidents

def test_search_records_by_report_command(self, mocker):
Expand Down
6 changes: 6 additions & 0 deletions Packs/ArcherRSA/ReleaseNotes/1_2_18.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### RSA Archer v2

- Updated the Docker image to: *demisto/python3-deb:3.11.10.112166*.
2 changes: 1 addition & 1 deletion Packs/ArcherRSA/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "RSA Archer",
"description": "The RSA Archer GRC Platform provides a common foundation for managing policies, controls, risks, assessments and deficiencies across lines of business.",
"support": "xsoar",
"currentVersion": "1.2.17",
"currentVersion": "1.2.18",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
24 changes: 24 additions & 0 deletions Packs/CommonScripts/ReleaseNotes/1_15_73.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

#### Scripts

##### SSDeepSimilarity

- Updated the Docker image to: *demisto/ssdeep:1.0.0.112284*.
##### PDFUnlocker

- Updated the Docker image to: *demisto/readpdf:1.0.0.112283*.
##### JsonUnescape

- Updated the Docker image to: *demisto/python3-deb:3.11.10.112166*.
##### ReadPDFFileV2

- Updated the Docker image to: *demisto/readpdf:1.0.0.112283*.
##### UnzipFile

- Updated the Docker image to: *demisto/unzip:1.0.0.112289*.
##### PcapHTTPExtractor

- Updated the Docker image to: *demisto/pcap-http-extractor:1.0.0.112272*.
##### ReadQRCode

- Updated the Docker image to: *demisto/qrcode:1.0.0.112357*.
2 changes: 1 addition & 1 deletion Packs/CommonScripts/Scripts/JsonUnescape/JsonUnescape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commonfields:
contentitemexportablefields:
contentitemfields:
fromServerVersion: ""
dockerimage: demisto/python3-deb:3.10.13.85666
dockerimage: demisto/python3-deb:3.11.10.112166
enabled: true
name: JsonUnescape
outputs:
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/Scripts/PDFUnlocker/PDFUnlocker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ args:
secret: true
description: Password of PDF file.
scripttarget: 0
dockerimage: demisto/readpdf:1.0.0.93363
dockerimage: demisto/readpdf:1.0.0.112283
fromversion: 5.0.0
tests:
- PDFUnlocker-Test
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tags:
- http
timeout: '0'
type: python
dockerimage: demisto/pcap-http-extractor:1.0.0.93351
dockerimage: demisto/pcap-http-extractor:1.0.0.112272
tests:
- PcapHTTPExtractor-Test
subtype: python3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ tags:
- ingestion
timeout: "0"
type: python
dockerimage: demisto/readpdf:1.0.0.98214
dockerimage: demisto/readpdf:1.0.0.112283
runas: DBotRole
tests:
- Extract Indicators From File - Generic v2 - Test
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/Scripts/ReadQRCode/ReadQRCode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tags: []
timeout: '0'
type: python
subtype: python3
dockerimage: demisto/qrcode:1.0.0.98232
dockerimage: demisto/qrcode:1.0.0.112357
fromversion: 6.10.0
tests:
- No tests (auto formatted)
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ outputs:
type: string
scripttarget: 0
subtype: python3
dockerimage: demisto/ssdeep:1.0.0.93570
dockerimage: demisto/ssdeep:1.0.0.112284
runas: DBotWeakRole
fromversion: 5.5.0
tests:
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/Scripts/UnzipFile/UnzipFile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tags:
- file
timeout: '0'
type: python
dockerimage: demisto/unzip:1.0.0.86000
dockerimage: demisto/unzip:1.0.0.112289
tests:
- ZipFile-Test
- UnzipFile-Test
Expand Down
2 changes: 1 addition & 1 deletion Packs/CommonScripts/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Common Scripts",
"description": "Frequently used scripts pack.",
"support": "xsoar",
"currentVersion": "1.15.72",
"currentVersion": "1.15.73",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
6 changes: 6 additions & 0 deletions Packs/CortexAttackSurfaceManagement/ReleaseNotes/1_7_56.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### RankServiceOwners

- Updated the Docker image to: *demisto/xpanse-ml-ev2:1.0.0.112461*.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ comment: Recommend most likely service owners from those surfaced by Cortex ASM
commonfields:
id: RankServiceOwners
version: -1
dockerimage: demisto/xpanse-ml-ev2:1.0.0.110976
dockerimage: demisto/xpanse-ml-ev2:1.0.0.112461
enabled: true
name: RankServiceOwners
runas: DBotWeakRole
Expand Down
2 changes: 1 addition & 1 deletion Packs/CortexAttackSurfaceManagement/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Cortex Attack Surface Management",
"description": "Content for working with Attack Surface Management (ASM).",
"support": "xsoar",
"currentVersion": "1.7.55",
"currentVersion": "1.7.56",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Packs/GCP-IAM/Integrations/GCPIAM/GCPIAM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ script:
description: Create a short-lived access token for a service account. The generated token will be exposed to the context menu and War Room, and can potentially be logged.
execution: true
name: gcp-iam-service-account-generate-access-token
dockerimage: demisto/google-api-py3:1.0.0.105788
dockerimage: demisto/google-api-py3:1.0.0.112317
runonce: false
script: '-'
subtype: python3
Expand Down
6 changes: 6 additions & 0 deletions Packs/GCP-IAM/ReleaseNotes/1_0_27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### GCP-IAM

- Updated the Docker image to: *demisto/google-api-py3:1.0.0.112317*.
2 changes: 1 addition & 1 deletion Packs/GCP-IAM/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GCP IAM",
"description": "Manage identity and access control for Google Cloud Platform resources.",
"support": "xsoar",
"currentVersion": "1.0.26",
"currentVersion": "1.0.27",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Packs/GSuiteAdmin/Integrations/GSuiteAdmin/GSuiteAdmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2895,7 +2895,7 @@ script:
name: policy_schema
description: Delete multiple policy values that are applied to a specific group. All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in additionalTargetKeyNames, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.
name: gsuite-policy-groups-delete
dockerimage: demisto/googleapi-python3:1.0.0.91615
dockerimage: demisto/googleapi-python3:1.0.0.112316
runonce: false
script: '-'
subtype: python3
Expand Down
6 changes: 6 additions & 0 deletions Packs/GSuiteAdmin/ReleaseNotes/1_2_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Google Workspace Admin

- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.112316*.
2 changes: 1 addition & 1 deletion Packs/GSuiteAdmin/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "G Suite Admin",
"description": "G Suite Admin integration with Cortex XSOAR. G Suite or Google Workspace Admin is an integration to perform an action on IT infrastructure, create users, update settings, and more administrative tasks.",
"support": "xsoar",
"currentVersion": "1.2.0",
"currentVersion": "1.2.1",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ script:
- contextPath: GSuiteSecurityAlert.Recover.failedAlerts.status
description: Status of the failed alert recovery.
type: String
dockerimage: demisto/googleapi-python3:1.0.0.89487
dockerimage: demisto/googleapi-python3:1.0.0.112316
isfetch: true
runonce: false
script: '-'
Expand Down
6 changes: 6 additions & 0 deletions Packs/GSuiteSecurityAlertCenter/ReleaseNotes/1_1_44.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### G Suite Security Alert Center

- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.112316*.
2 changes: 1 addition & 1 deletion Packs/GSuiteSecurityAlertCenter/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "G Suite Security Alert Center",
"description": "Fetch alert types, delete or recover alerts, retrieve an alert's metadata, and create or view alert feedback.",
"support": "xsoar",
"currentVersion": "1.1.43",
"currentVersion": "1.1.44",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Packs/Gmail/Integrations/Gmail/Gmail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ script:
- contextPath: Gmail.ForwardingAddress.verificationStatus
description: Indicates whether this address has been verified and is usable for forwarding.
type: String
dockerimage: demisto/google-api-py3:1.0.0.110173
dockerimage: demisto/google-api-py3:1.0.0.112317
isfetch: true
runonce: false
script: '-'
Expand Down
6 changes: 6 additions & 0 deletions Packs/Gmail/ReleaseNotes/1_3_25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Gmail

- Updated the Docker image to: *demisto/google-api-py3:1.0.0.112317*.
2 changes: 1 addition & 1 deletion Packs/Gmail/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Gmail",
"description": "Gmail API and user management (This integration replaces the Gmail functionality in the GoogleApps API and G Suite integration).",
"support": "xsoar",
"currentVersion": "1.3.24",
"currentVersion": "1.3.25",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
Loading

0 comments on commit 89693b2

Please sign in to comment.