Skip to content

Commit a42fb7b

Browse files
Merge branch 'main' into release-please--branches--main--components--scaffold
2 parents 597066b + 0d84525 commit a42fb7b

69 files changed

Lines changed: 2007 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pr_labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ hackernews:
2828
- plugins/source/hackernews/**/*
2929
heroku:
3030
- plugins/source/heroku/**/*
31+
hubspot:
32+
- plugins/source/hubspot/**/*
3133
plausible:
3234
- plugins/source/plausible/**/*
3335
k8s:
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Source Plugin HubSpot Workflow
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "plugins/source/hubspot/**"
7+
- ".github/workflows/source_hubspot.yml"
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- "plugins/source/hubspot/**"
13+
- ".github/workflows/source_hubspot.yml"
14+
15+
jobs:
16+
plugins-source-hubspot:
17+
timeout-minutes: 30
18+
name: "plugins/source/hubspot"
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: ./plugins/source/hubspot
23+
steps:
24+
- uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 2
27+
- name: Set up Go 1.x
28+
uses: actions/setup-go@v3
29+
with:
30+
go-version-file: plugins/source/hubspot/go.mod
31+
cache: true
32+
cache-dependency-path: plugins/source/hubspot/go.sum
33+
- name: golangci-lint
34+
uses: golangci/golangci-lint-action@v3
35+
with:
36+
version: v1.50.1
37+
working-directory: plugins/source/hubspot
38+
args: "--config ../../.golangci.yml"
39+
- name: Get dependencies
40+
run: go get -t -d ./...
41+
- name: Build
42+
run: go build .
43+
- name: Test
44+
run: make test
45+
- name: gen
46+
if: github.event_name == 'pull_request'
47+
run: make gen
48+
- name: Fail if generation updated files
49+
if: github.event_name == 'pull_request'
50+
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1)
51+
validate-release:
52+
timeout-minutes: 30
53+
runs-on: ubuntu-latest
54+
env:
55+
CGO_ENABLED: 0
56+
steps:
57+
- name: Checkout
58+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
59+
uses: actions/checkout@v3
60+
- uses: actions/cache@v3
61+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
62+
with:
63+
path: |
64+
~/.cache/go-build
65+
~/go/pkg/mod
66+
key: ${{ runner.os }}-go-1.19.3-release-cache-${{ hashFiles('plugins/source/hubspot/go.sum') }}
67+
restore-keys: |
68+
${{ runner.os }}-go-1.19.3-release-cache-plugins-source-hubspot
69+
- name: Set up Go
70+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
71+
uses: actions/setup-go@v3
72+
with:
73+
go-version-file: plugins/source/hubspot/go.mod
74+
- name: Install GoReleaser
75+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
76+
uses: goreleaser/goreleaser-action@v3
77+
with:
78+
distribution: goreleaser-pro
79+
version: latest
80+
install-only: true
81+
- name: Run GoReleaser Dry-Run
82+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
83+
run: goreleaser release --snapshot --rm-dist --skip-validate --skip-publish --skip-sign -f ./plugins/source/hubspot/.goreleaser.yaml
84+
env:
85+
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.github/workflows/wait_for_required_workflows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
"plugins/source/gitlab",
5757
"plugins/source/hackernews",
5858
"plugins/source/heroku",
59+
"plugins/source/hubspot",
5960
"plugins/source/k8s",
6061
"plugins/source/okta",
6162
"plugins/source/shopify",

.release-please-manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"plugins/source/cloudflare+FILLER": "0.0.0",
1010
"plugins/source/digitalocean": "4.1.2",
1111
"plugins/source/digitalocean+FILLER": "0.0.0",
12-
"plugins/source/gcp": "7.2.1",
12+
"plugins/source/gcp": "7.3.0",
1313
"plugins/source/gcp+FILLER": "0.0.0",
1414
"plugins/source/github": "2.1.3",
1515
"plugins/source/github+FILLER": "0.0.0",
@@ -89,5 +89,6 @@
8989
"plugins/source/shopify+FILLER": "0.0.0",
9090
"plugins/source/stripe": "1.0.1",
9191
"plugins/source/stripe+FILLER": "0.0.0",
92-
"plugins/source/mixpanel": "1.0.0"
92+
"plugins/source/mixpanel": "1.0.0",
93+
"plugins/source/hubspot": "1.0.0"
9394
}

plugins/source/gcp/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this provider will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [7.3.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-gcp-v7.2.1...plugins-source-gcp-v7.3.0) (2023-01-25)
9+
10+
11+
### Features
12+
13+
* **gcp-resources:** Add Security Center projects and organizations findings ([#7089](https://github.com/cloudquery/cloudquery/issues/7089)) ([e849caf](https://github.com/cloudquery/cloudquery/commit/e849caf1915eb7f811e9e8edfc94009f6e710229))
14+
15+
16+
### Bug Fixes
17+
18+
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](https://github.com/cloudquery/cloudquery/issues/7121)) ([b7441c9](https://github.com/cloudquery/cloudquery/commit/b7441c93c274ae3a6009474a2b28f44a172dd6dc))
19+
820
## [7.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-gcp-v7.2.0...plugins-source-gcp-v7.2.1) (2023-01-24)
921

1022

plugins/source/gcp/docs/tables/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
- [gcp_run_locations](gcp_run_locations.md)
142142
- [gcp_run_services](gcp_run_services.md)
143143
- [gcp_secretmanager_secrets](gcp_secretmanager_secrets.md)
144+
- [gcp_securitycenter_organization_findings](gcp_securitycenter_organization_findings.md)
145+
- [gcp_securitycenter_project_findings](gcp_securitycenter_project_findings.md)
144146
- [gcp_serviceusage_services](gcp_serviceusage_services.md)
145147
- [gcp_sql_instances](gcp_sql_instances.md)
146148
- [gcp_sql_users](gcp_sql_users.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Table: gcp_securitycenter_organization_findings
2+
3+
https://cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#ListFindingsResult
4+
5+
The composite primary key for this table is (**organization_id**, **name**).
6+
7+
## Columns
8+
9+
| Name | Type |
10+
| ------------- | ------------- |
11+
|_cq_source_name|String|
12+
|_cq_sync_time|Timestamp|
13+
|_cq_id|UUID|
14+
|_cq_parent_id|UUID|
15+
|organization_id (PK)|String|
16+
|name (PK)|String|
17+
|finding|JSON|
18+
|state_change|String|
19+
|resource|JSON|
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Table: gcp_securitycenter_project_findings
2+
3+
https://cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#ListFindingsResult
4+
5+
The composite primary key for this table is (**project_id**, **name**).
6+
7+
## Columns
8+
9+
| Name | Type |
10+
| ------------- | ------------- |
11+
|_cq_source_name|String|
12+
|_cq_sync_time|Timestamp|
13+
|_cq_id|UUID|
14+
|_cq_parent_id|UUID|
15+
|project_id (PK)|String|
16+
|name (PK)|String|
17+
|finding|JSON|
18+
|state_change|String|
19+
|resource|JSON|

plugins/source/gcp/go.mod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ require (
3333
cloud.google.com/go/run v0.4.0
3434
cloud.google.com/go/scheduler v1.7.0
3535
cloud.google.com/go/secretmanager v1.9.0
36+
cloud.google.com/go/securitycenter v1.18.1
3637
cloud.google.com/go/serviceusage v1.4.0
3738
cloud.google.com/go/storage v1.28.0
3839
cloud.google.com/go/translate v1.4.0
@@ -55,15 +56,15 @@ require (
5556
github.com/thoas/go-funk v0.9.3
5657
golang.org/x/exp v0.0.0-20221230185412-738e83a70c30
5758
golang.org/x/sync v0.1.0
58-
google.golang.org/api v0.105.0
59-
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef
59+
google.golang.org/api v0.107.0
60+
google.golang.org/genproto v0.0.0-20230113154510-dbe35b8444a5
6061
google.golang.org/grpc v1.51.0
6162
google.golang.org/protobuf v1.28.1
6263
)
6364

6465
require (
6566
cloud.google.com/go v0.107.0 // indirect
66-
cloud.google.com/go/compute/metadata v0.2.2 // indirect
67+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
6768
cloud.google.com/go/vision v1.2.0 // indirect
6869
github.com/census-instrumentation/opencensus-proto v0.2.1 // indirect
6970
github.com/cespare/xxhash/v2 v2.1.1 // indirect
@@ -78,7 +79,7 @@ require (
7879
github.com/golang/protobuf v1.5.2 // indirect
7980
github.com/google/go-cmp v0.5.9 // indirect
8081
github.com/google/uuid v1.3.0 // indirect
81-
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
82+
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
8283
github.com/inconshreveable/mousetrap v1.1.0 // indirect
8384
github.com/mattn/go-colorable v0.1.13 // indirect
8485
github.com/mattn/go-isatty v0.0.17 // indirect

plugins/source/gcp/go.sum

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTB
6363
cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM=
6464
cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0=
6565
cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo=
66-
cloud.google.com/go/compute/metadata v0.2.2 h1:aWKAjYaBaOSrpKl57+jnS/3fJRQnxL7TvR/u1VVbt6k=
67-
cloud.google.com/go/compute/metadata v0.2.2/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM=
66+
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
67+
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
6868
cloud.google.com/go/container v1.8.0 h1:wib6oN0XQT4r2M4RFfEz0AdfslEQc7H5SDLCV8EZ/lU=
6969
cloud.google.com/go/container v1.8.0/go.mod h1:1ZHYR+yKrEeDs/iBoUNgwyjWNo+WaPN8PRhVnWVCcuA=
7070
cloud.google.com/go/containeranalysis v0.6.0 h1:2824iym832ljKdVpCBnpqm5K94YT/uHTVhNF+dRTXPI=
@@ -105,6 +105,8 @@ cloud.google.com/go/scheduler v1.7.0 h1:K/mxOewgHGeKuATUJNGylT75Mhtjmx1TOkKukATq
105105
cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44=
106106
cloud.google.com/go/secretmanager v1.9.0 h1:xE6uXljAC1kCR8iadt9+/blg1fvSbmenlsDN4fT9gqw=
107107
cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4=
108+
cloud.google.com/go/securitycenter v1.18.1 h1:DRUo2MFSq3Kt0a4hWRysdMHcu2obPwnSQNgHfOuwR4Q=
109+
cloud.google.com/go/securitycenter v1.18.1/go.mod h1:0/25gAzCM/9OL9vVx4ChPeM/+DlfGQJDwBy/UC8AKK0=
108110
cloud.google.com/go/serviceusage v1.4.0 h1:b0EwJxPJLpavSljMQh0RcdHsUrr5DQ+Nelt/3BAs5ro=
109111
cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU=
110112
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
@@ -265,8 +267,8 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4
265267
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
266268
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
267269
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
268-
github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs=
269-
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
270+
github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg=
271+
github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
270272
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
271273
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
272274
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
@@ -643,8 +645,8 @@ google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3h
643645
google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo=
644646
google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g=
645647
google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA=
646-
google.golang.org/api v0.105.0 h1:t6P9Jj+6XTn4U9I2wycQai6Q/Kz7iOT+QzjJ3G2V4x8=
647-
google.golang.org/api v0.105.0/go.mod h1:qh7eD5FJks5+BcE+cjBIm6Gz8vioK7EHvnlniqXBnqI=
648+
google.golang.org/api v0.107.0 h1:I2SlFjD8ZWabaIFOfeEDg3pf0BHJDh6iYQ1ic3Yu/UU=
649+
google.golang.org/api v0.107.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY=
648650
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
649651
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
650652
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -718,8 +720,8 @@ google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ6
718720
google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
719721
google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
720722
google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
721-
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef h1:uQ2vjV/sHTsWSqdKeLqmwitzgvjMl7o4IdtHwUDXSJY=
722-
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
723+
google.golang.org/genproto v0.0.0-20230113154510-dbe35b8444a5 h1:wJT65XLOzhpSPCdAmmKfz94SlmnQzDzjm3Cj9k3fsXY=
724+
google.golang.org/genproto v0.0.0-20230113154510-dbe35b8444a5/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM=
723725
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
724726
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
725727
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=

0 commit comments

Comments
 (0)