Skip to content
Open
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
94 changes: 94 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# This file is machine-generated by `gh actions-lock`.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/claude-code-review.yml':
- 'actions/checkout@v4.4.0'
- 'anthropics/claude-code-action@v1.0.286'
'.github/workflows/codeql-analysis.yml':
- 'actions/checkout@v5.1.0'
- 'github/codeql-action@v4.39.4'
'.github/workflows/cross-repo-bug-relay.yml': []
'.github/workflows/docs_drift_check.yml': []
'.github/workflows/docs_sync.yml':
- 'actions/checkout@v5.1.0'
- 'actions/create-github-app-token@v3.4.0'
'.github/workflows/docs_verify.yml':
- 'actions/checkout@v5.1.0'
'.github/workflows/release.yml':
- 'actions/checkout@v5.1.0'
- 'actions/create-github-app-token@v1.12.0'
- 'actions/setup-go@v5.6.0'
'.github/workflows/run-lint.yml':
- 'actions/checkout@v6.1.0'
- 'actions/setup-go@v6.5.0'
- 'golangci/golangci-lint-action@v9.3.0'
'.github/workflows/run-tests-cloud.yml':
- 'actions/checkout@v4.4.0'
- 'actions/setup-go@v5.6.0'
'.github/workflows/run-tests-head.yml':
- 'actions/checkout@v4.4.0'
- 'actions/setup-go@v5.6.0'
'.github/workflows/run-tests.yml':
- 'actions/checkout@v4.4.0'
- 'actions/setup-go@v5.6.0'
'.github/workflows/stresshouse-benchmark-compare.yml': []
dependencies:
'actions/checkout@v4.4.0':
ref: 'v4.4.0'
commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262'
owner_id: 44036562
repo_id: 197814629
'actions/checkout@v5.1.0':
ref: 'v5.1.0'
commit: 'sha1-fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09'
owner_id: 44036562
repo_id: 197814629
'actions/checkout@v6.1.0':
ref: 'v6.1.0'
commit: 'sha1-d23441a48e516b6c34aea4fa41551a30e30af803'
owner_id: 44036562
repo_id: 197814629
'actions/create-github-app-token@v1.12.0':
ref: 'v1.12.0'
commit: 'sha1-d72941d797fd3113feb6b93fd0dec494b13a2547'
owner_id: 44036562
repo_id: 642580244
'actions/create-github-app-token@v3.4.0':
ref: 'v3.4.0'
commit: 'sha1-f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc'
owner_id: 44036562
repo_id: 642580244
'actions/setup-go@v5.6.0':
ref: 'v5.6.0'
commit: 'sha1-40f1582b2485089dde7abd97c1529aa768e1baff'
owner_id: 44036562
repo_id: 192624594
'actions/setup-go@v6.5.0':
ref: 'v6.5.0'
commit: 'sha1-924ae3a1cded613372ab5595356fb5720e22ba16'
owner_id: 44036562
repo_id: 192624594
'anthropics/claude-code-action@v1.0.286':
ref: 'v1.0.286'
commit: 'sha1-acfe7992852970efb4fee683d63d628e3e52df67'
owner_id: 76263028
repo_id: 986421638
uses:
- 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6'
'github/codeql-action@v4.39.4':
ref: 'v4.39.4'
commit: 'sha1-1bd86f2fdb4b86187fa4059f16f31a3202acc9ea'
owner_id: 9919
repo_id: 259445878
'golangci/golangci-lint-action@v9.3.0':
ref: 'v9.3.0'
commit: 'sha1-ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a'
owner_id: 35628013
repo_id: 232539879
'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6':
ref: 'v2.2.0'
commit: 'sha1-0c5077e51419868618aeaa5fe8019c62421857d6'
owner_id: 108928776
repo_id: 512644635
4 changes: 2 additions & 2 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: Checkout base branch
uses: actions/checkout@v4
uses: actions/checkout@v4.4.0
# SECURITY: pull_request_target checks out the base branch by default.
# Do NOT add `ref: ${{ github.event.pull_request.head.sha }}` here —
# that would run untrusted fork code with access to repository secrets.
Expand All @@ -47,7 +47,7 @@ jobs:
> existing-threads.json || echo '{"threads":[]}' > existing-threads.json

- name: Review PR with Claude (produce findings JSON)
uses: anthropics/claude-code-action@v1
uses: anthropics/claude-code-action@v1.0.286
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ github.token }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@main
uses: actions/checkout@v5.1.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v4.39.4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -44,7 +44,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v4.39.4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -58,4 +58,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v4.39.4
4 changes: 2 additions & 2 deletions .github/workflows/docs_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout docs source
uses: actions/checkout@v5
uses: actions/checkout@v5.1.0
with:
# On a release, take the docs as of the released tag; otherwise take
# the default checkout (post-merge default branch / dispatched ref).
Expand All @@ -128,7 +128,7 @@ jobs:

- name: Generate token for target repo
id: app-token
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@v3.4.0
with:
app-id: ${{ secrets.WORKFLOW_AUTH_PUBLIC_APP_ID }}
private-key: ${{ secrets.WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
image: clickhouse/docs-builder
steps:
- name: Checkout docs source
uses: actions/checkout@v5
uses: actions/checkout@v5.1.0

# Fetch the check driver from ClickHouse/ClickHouse rather than vendoring
# it. The driver shallow/sparse-clones the aggregator docs plus its CI
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: release

permissions: write-all
permissions:
contents: read

on:
workflow_dispatch:
Expand All @@ -11,19 +12,19 @@ jobs:
steps:
- name: Generate Token
id: generate-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v1.12.0
with:
app-id: ${{ secrets.WORKFLOW_AUTH_PUBLIC_APP_ID }}
private-key: ${{ secrets.WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY }}

- uses: actions/checkout@main
- uses: actions/checkout@v5.1.0
with:
ref: main
fetch-depth: 0 # required to generate contributor list
token: ${{ steps.generate-token.outputs.token }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@v5.6.0
with:
go-version: 1.26

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
runs-on: [self-hosted, pr-style-checker-aarch64]
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v6.1.0

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v6.5.0
with:
go-version: "1.26"

- name: golangci-lint
uses: golangci/golangci-lint-action@v9
uses: golangci/golangci-lint-action@v9.3.0
with:
version: v2.11
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- "1.27"
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.4.0
with:
# head.sha is fixed at the time of the `labeled` event, so commits pushed
# after a maintainer adds the label do not run.
Expand All @@ -49,7 +49,7 @@ jobs:
persist-credentials: false

- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v5
uses: actions/setup-go@v5.6.0
with:
go-version: ${{ matrix.go }}

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/run-tests-head.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests head

permissions: write-all
permissions:
contents: read

on:
schedule:
Expand All @@ -20,10 +21,10 @@ jobs:
- "1.26"
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.4.0

- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v5
uses: actions/setup-go@v5.6.0
with:
go-version: ${{ matrix.go }}

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests matrix

permissions: write-all
permissions:
contents: read

on:
push:
Expand All @@ -26,10 +27,10 @@ jobs:
- "26.3" # LTS
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.4.0

- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v5
uses: actions/setup-go@v5.6.0
with:
go-version: ${{ matrix.go }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/stresshouse-benchmark-compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ jobs:
client: clickhouse-go
profile: pr-compare
pr_number: ${{ github.event.issue.number || inputs.pr_number }}
secrets: inherit
secrets:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not inherit the secrets here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

secrets: inherit forwards every secret into the workflow, while the callee here only declares WORKFLOW_AUTH_PUBLIC_APP_ID and WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY, so everything beyond those two is exposure with no benefit.

And this particular callee lives in a different repo (ClickHouse/integrations-shared-workflows) and is referenced on @main, meaning any future change to that workflow immediately runs here with whatever secrets we hand it.

Passing them explicitly caps what a change on that side can ever reach, and doubles as documentation of what the workflow actually needs. If the shared workflow grows a new secret later, the failure is loud (a missing-secret error) instead of a silent broadening of access.

WORKFLOW_AUTH_PUBLIC_APP_ID: ${{ secrets.WORKFLOW_AUTH_PUBLIC_APP_ID }}
WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY: ${{ secrets.WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY }}
Loading