Skip to content

Commit 81748fe

Browse files
authored
Merge branch 'main' into feat/platform-api-v2
2 parents 22efab6 + 7ff3cfb commit 81748fe

8 files changed

Lines changed: 45 additions & 22 deletions

File tree

.github/workflows/gen-client.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@ jobs:
77
timeout-minutes: 30
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Generate GitHub App token
11+
id: app-token
12+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
13+
with:
14+
app-id: ${{ secrets.CQ_APP_ID }}
15+
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
16+
permission-contents: write
17+
permission-pull-requests: write
1018
- name: Checkout
11-
uses: actions/checkout@v6
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1220
with:
13-
token: ${{ secrets.GH_CQ_BOT }}
21+
token: ${{ steps.app-token.outputs.token }}
1422

1523
- name: Get Specs File
1624
run: |
17-
curl -H "Authorization: token ${{ secrets.GH_CQ_BOT }}" https://raw.githubusercontent.com/cloudquery/platform/main/platform/api/servergen/spec.json -o spec.json
25+
curl -H "Authorization: token ${{ steps.app-token.outputs.token }}" https://raw.githubusercontent.com/cloudquery/platform/main/platform/api/servergen/spec.json -o spec.json
1826
1927
- name: Set up Go 1.x
20-
uses: actions/setup-go@v6
28+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
2129
with:
2230
go-version-file: go.mod
2331

@@ -26,14 +34,13 @@ jobs:
2634
go generate ./...
2735
2836
- name: Create Pull Request
29-
uses: peter-evans/create-pull-request@v8
37+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
3038
with:
3139
# required so the PR triggers workflow runs
32-
token: ${{ secrets.GH_CQ_BOT }}
40+
token: ${{ steps.app-token.outputs.token }}
3341
branch: fix/gen-cloudquery-api
3442
base: main
3543
title: "fix: Generate CloudQuery Go API Client from `spec.json`"
3644
commit-message: "fix: Generate CloudQuery Go API Client from `spec.json`"
3745
body: This PR was created by a scheduled workflow to generate the CloudQuery Go API Client from `spec.json`
38-
author: cq-bot <cq-bot@users.noreply.github.com>
3946
labels: automerge

.github/workflows/lint_golang.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/checkout@v6
17-
- uses: actions/setup-go@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
1818
with:
1919
go-version-file: go.mod
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v9
21+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
2222
with:
23-
version: v2.8.0
23+
version: v2.10.1

.github/workflows/release-pr.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
timeout-minutes: 10
1212
steps:
13-
- uses: googleapis/release-please-action@v4
13+
- name: Generate GitHub App token
14+
id: app-token
15+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
16+
with:
17+
app-id: ${{ secrets.CQ_APP_ID }}
18+
private-key: ${{ secrets.CQ_APP_PRIVATE_KEY }}
19+
permission-contents: write
20+
permission-pull-requests: write
21+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
1422
id: release
1523
with:
16-
token: ${{ secrets.GH_CQ_BOT }}
24+
token: ${{ steps.app-token.outputs.token }}
1725
- name: Parse semver string
1826
if: steps.release.outputs.release_created
1927
id: semver_parser
@@ -29,10 +37,10 @@ jobs:
2937
with:
3038
prerelease: true
3139
- name: Trigger Renovate
32-
uses: actions/github-script@v8
40+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
3341
if: steps.release.outputs.release_created && steps.semver_parser.outputs.prerelease == ''
3442
with:
35-
github-token: ${{ secrets.GH_CQ_BOT }}
43+
github-token: ${{ steps.app-token.outputs.token }}
3644
script: |
3745
github.rest.actions.createWorkflowDispatch({
3846
owner: 'cloudquery',

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
- name: Set up Go 1.x
22-
uses: actions/setup-go@v6
22+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
2323
with:
2424
go-version-file: go.mod
2525
- run: go mod download

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.6"
2+
".": "1.0.7"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [1.0.7](https://github.com/cloudquery/cloudquery-platform-api-go/compare/v1.0.6...v1.0.7) (2026-03-26)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Update dependency go to v1.25.7 ([#49](https://github.com/cloudquery/cloudquery-platform-api-go/issues/49)) ([6a8c307](https://github.com/cloudquery/cloudquery-platform-api-go/commit/6a8c307051f1f6a1ef8d503b30810fd0fd9c3bdb))
9+
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.14.9 ([#53](https://github.com/cloudquery/cloudquery-platform-api-go/issues/53)) ([5b05818](https://github.com/cloudquery/cloudquery-platform-api-go/commit/5b058183bceb0999f9f371e28e1063ffe3edf4ef))
10+
311
## [1.0.6](https://github.com/cloudquery/cloudquery-platform-api-go/compare/v1.0.5...v1.0.6) (2026-02-01)
412

513

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/cloudquery/cloudquery-platform-api-go/v2
22

3-
go 1.25.5
3+
go 1.26.1
44

55
require (
66
github.com/adrg/xdg v0.5.3
7-
github.com/cloudquery/cloudquery-api-go v1.14.8
7+
github.com/cloudquery/cloudquery-api-go v1.14.9
88
github.com/hashicorp/go-retryablehttp v0.7.8
99
github.com/oapi-codegen/runtime v1.1.2
1010
github.com/stretchr/testify v1.11.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ github.com/adrg/xdg v0.5.3/go.mod h1:nlTsY+NNiCBGCK2tpm09vRqfVzrc2fLmXGpBLF0zlTQ
44
github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ=
55
github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk=
66
github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w=
7-
github.com/cloudquery/cloudquery-api-go v1.14.8 h1:iwXOQoVINrDQ69gtqBjWPSIdg7KcyLMq//FJkLxzUV4=
8-
github.com/cloudquery/cloudquery-api-go v1.14.8/go.mod h1:d+I8E+z3vmvTvCNXZ5YNhxV9InY/i1siXa0vCYq+ABk=
7+
github.com/cloudquery/cloudquery-api-go v1.14.9 h1:Za6Kr5LhIRx0iQExH4hAZnPEuFTUe3MOjip/gMQqCjI=
8+
github.com/cloudquery/cloudquery-api-go v1.14.9/go.mod h1:vcEX3PUxr492xuvg0vwV7wGFxBuRUOV6IeDhyyPtA4E=
99
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1010
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1111
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

0 commit comments

Comments
 (0)