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

Merging next to main for release 2.1.1 #15

Merged
merged 8 commits into from
Dec 12, 2023
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
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 }}
28 changes: 0 additions & 28 deletions .github/workflows/semgrep.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.13
rev: v1.16
hooks:
- id: org-hook
- id: package-app-dependencies
Expand Down
2 changes: 1 addition & 1 deletion 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 (c) 2018-2022 Splunk Inc.
Copyright (c) 2018-2023 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
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR Big Query
Copyright (c) 2018-2022 Splunk Inc.
Copyright (c) 2018-2023 Splunk Inc.

Third-party Software Attributions:

Expand All @@ -13,11 +13,6 @@ Version: 0.4.6
License: BSD 2
Copyright 2005-2019 Ilya Etingof <[email protected]>

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

Library: rsa
Version: 4.7.2
License: Apache 2.0
Expand Down
80 changes: 40 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# Big Query

Publisher: Splunk
Connector Version: 2\.1\.0
Connector Version: 2.1.1
Product Vendor: Google
Product Name: Big Query
Product Version Supported (regex): "\.\*"
Minimum Product Version: 5\.3\.0
Product Version Supported (regex): ".\*"
Minimum Product Version: 5.3.0

This app allows running investigative actions against Google BigQuery

[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2018-2022 Splunk Inc."
[comment]: # " Copyright (c) 2018-2023 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
Expand Down Expand Up @@ -51,7 +51,7 @@ The below configuration variables are required for this Connector to operate. T

VARIABLE | REQUIRED | TYPE | DESCRIPTION
-------- | -------- | ---- | -----------
**key\_json** | required | password | Contents of Service Account JSON file
**key_json** | required | password | Contents of Service Account JSON file

### Supported Actions
[test connectivity](#action-test-connectivity) - Validate the asset configuration for connectivity using supplied configuration
Expand Down Expand Up @@ -83,18 +83,18 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
**dataset** | optional | Only list tables in this dataset | string | `bigquery dataset`

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.dataset | string | `bigquery dataset`
action\_result\.data\.\*\.dataset\_id | string | `bigquery dataset`
action\_result\.data\.\*\.full\_table\_id | string |
action\_result\.data\.\*\.project\_id | string |
action\_result\.data\.\*\.table\_id | string |
action\_result\.summary\.total\_tables | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.dataset | string | `bigquery dataset` |
action_result.data.\*.dataset_id | string | `bigquery dataset` | company_dataset
action_result.data.\*.full_table_id | string | | my-company-project-513002:company_dataset.test_table_1
action_result.data.\*.project_id | string | | my-company-project-513002
action_result.data.\*.table_id | string | | test_table_1
action_result.summary.total_tables | numeric | |
action_result.message | string | | Successfully listed tables
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1

## action: 'get results'
Get results from a job started with 'run query'
Expand All @@ -105,21 +105,21 @@ Read only: **True**
#### Action Parameters
PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
--------- | -------- | ----------- | ---- | --------
**job\_id** | required | Job ID | string | `bigquery job id`
**job_id** | required | Job ID | string | `bigquery job id`
**timeout** | optional | How long to wait for results | numeric |

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.job\_id | string | `bigquery job id`
action\_result\.parameter\.timeout | numeric |
action\_result\.data\.\* | string |
action\_result\.summary\.job\_id | string | `bigquery job id`
action\_result\.summary\.num\_rows | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.parameter.timeout | numeric | | 30
action_result.data.\* | string | |
action_result.summary.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.summary.num_rows | numeric | | 1000
action_result.message | string | | Successfully retrieved results from Query
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1

## action: 'run query'
Run a Query
Expand All @@ -134,14 +134,14 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
**timeout** | optional | How long to wait for results | numeric |

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.query | string | `bigquery query`
action\_result\.parameter\.timeout | numeric |
action\_result\.data\.\* | string |
action\_result\.summary\.job\_id | string | `bigquery job id`
action\_result\.summary\.num\_rows | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.query | string | `bigquery query` | SELECT weight_pounds, state, year, gestation_weeks FROM `bigquery-public-data.samples.natality` LIMIT 1000;
action_result.parameter.timeout | numeric | | 1
action_result.data.\* | string | |
action_result.summary.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.summary.num_rows | numeric | | 1000
action_result.message | string | | Successfully retrieved results from Query
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1
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) 2018-2022 Splunk Inc.
# Copyright (c) 2018-2023 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
Loading