Skip to content

Commit

Permalink
Merge pull request #17 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
Merging next to main for release 2.2.7
  • Loading branch information
ishans-crest authored Jan 5, 2024
2 parents 2b36b21 + b3c553a commit 8187dd9
Show file tree
Hide file tree
Showing 27 changed files with 252 additions and 504 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/generate-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Generate Readme Doc
on:
workflow_dispatch:
push:
paths:
- '*.json'
- 'readme.html'
- 'manual_readme_content.md'
tags-ignore:
- '**'
branches-ignore:
- next
- main
jobs:
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: 'phantomcyber/dev-cicd-tools/github-actions/generate-doc@main'
with:
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Linting
on: [push, pull_request]
jobs:
lint:
lint:
# Run per push for internal contributers. This isn't possible for forked pull requests,
# so we'll need to run on PR events for external contributers.
# String comparison below is case insensitive.
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/review-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Review Release
concurrency:
group: app-release
cancel-in-progress: true
permissions:
contents: read
id-token: write
statuses: write
on:
workflow_dispatch:
inputs:
task_token:
description: 'StepFunction task token'
required: true

jobs:
review:
uses: 'phantomcyber/dev-cicd-tools/.github/workflows/review-release.yml@main'
with:
task_token: ${{ inputs.task_token }}
secrets:
resume_release_role_arn: ${{ secrets.RESUME_RELEASE_ROLE_ARN }}
8 changes: 6 additions & 2 deletions .github/workflows/start-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Start Release
on: workflow_dispatch
on:
workflow_dispatch:
push:
tags:
- '*-beta*'
jobs:
start-release:
runs-on: ubuntu-latest
steps:
- uses: 'phantomcyber/dev-cicd-tools/github-actions/start-release@main'
with:
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.5
rev: v1.16
hooks:
- id: org-hook
- id: package-app-dependencies
- repo: https://github.com/Yelp/detect-secrets
rev: v1.1.0
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--no-verify', '--exclude-files', '^awslambda.json$']
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2019-2022 Splunk Inc.
Copyright (c) 2019-2024 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR AWS Lambda
Copyright (c) 2019-2022 Splunk Inc.
Copyright (c) 2019-2024 Splunk Inc.

Third-party Software Attributions:

Expand All @@ -17,11 +17,6 @@ License: Python 2.0
Copyright 2004-2007 Chad Miller
Copyright 2011 Günter Milde,

Library: requests
Version: 2.25.0
License: Apache 2.0
Kenneth Reitz

Library: six
Version: 1.15.0
License: MIT
Expand Down
286 changes: 143 additions & 143 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2019-2022 Splunk Inc.
# Copyright (c) 2019-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
154 changes: 41 additions & 113 deletions awslambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"product_name": "Lambda",
"product_version_regex": ".*",
"publisher": "Splunk",
"license": "Copyright (c) 2019-2022 Splunk Inc.",
"app_version": "2.2.6",
"utctime_updated": "2022-01-07T04:07:33.000000Z",
"license": "Copyright (c) 2019-2024 Splunk Inc.",
"app_version": "2.2.7",
"utctime_updated": "2022-02-04T17:14:48.000000Z",
"package_name": "phantom_awslambda",
"main_module": "awslambda_connector.py",
"min_phantom_version": "5.0.0",
Expand All @@ -21,114 +21,6 @@
"Cloud API, September 13, 2021"
],
"app_wizard_version": "1.0.0",
"pip_dependencies": {
"wheel": [
{
"module": "boto3",
"input_file": "wheels/shared/boto3-1.17.30-py2.py3-none-any.whl"
},
{
"module": "botocore",
"input_file": "wheels/shared/botocore-1.20.112-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/shared/docutils-0.18-py2.py3-none-any.whl"
},
{
"module": "futures",
"input_file": "wheels/py2/futures-3.3.0-py2-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.15.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.7-py2.py3-none-any.whl"
}
]
},
"pip3_dependencies": {
"wheel": [
{
"module": "boto3",
"input_file": "wheels/shared/boto3-1.17.30-py2.py3-none-any.whl"
},
{
"module": "botocore",
"input_file": "wheels/shared/botocore-1.20.112-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/shared/docutils-0.18-py2.py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.15.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.7-py2.py3-none-any.whl"
}
]
},
"configuration": {
"access_key": {
"description": "Access Key",
Expand Down Expand Up @@ -1218,5 +1110,41 @@
},
"versions": "EQ(*)"
}
]
}
],
"pip_dependencies": {
"wheel": [
{
"module": "boto3",
"input_file": "wheels/shared/boto3-1.17.30-py2.py3-none-any.whl"
},
{
"module": "botocore",
"input_file": "wheels/shared/botocore-1.20.112-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/shared/docutils-0.18-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.15.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.18-py2.py3-none-any.whl"
}
]
}
}
3 changes: 2 additions & 1 deletion awslambda_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: awslambda_connector.py
#
# Copyright (c) 2019-2022 Splunk Inc.
# Copyright (c) 2019-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -93,6 +93,7 @@ def _sanitize_data(self, cur_obj):

def _make_boto_call(self, action_result, method, paginate=False, empty_payload=False, **kwargs):

self.debug_print('Making call to {}'.format(method))
if paginate is False:
try:
boto_func = getattr(self._client, method)
Expand Down
2 changes: 1 addition & 1 deletion awslambda_consts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: awslambda_consts.py
#
# Copyright (c) 2019-2022 Splunk Inc.
# Copyright (c) 2019-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion awslambda_invoke.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- Main Start Block -->

<!-- File: awslambda_invoke.html
Copyright (c) 2019-2022 Splunk Inc.
Copyright (c) 2019-2024 Splunk Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion awslambda_view.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: awslambda_view.py
#
# Copyright (c) 2019-2022 Splunk Inc.
# Copyright (c) 2019-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 8187dd9

Please sign in to comment.