diff --git a/.github/workflows/cloud-integration.yml b/.github/workflows/cloud-integration.yml index 2298602..090acaa 100644 --- a/.github/workflows/cloud-integration.yml +++ b/.github/workflows/cloud-integration.yml @@ -35,7 +35,9 @@ jobs: RUST_TEST_THREADS: 1 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Resolve test run label run: | @@ -52,7 +54,7 @@ jobs: esac - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - name: Run cloud integration suite run: cargo test -p clickhouse-cloud-api --test integration_test -- --ignored --nocapture diff --git a/.github/workflows/openapi-drift.yml b/.github/workflows/openapi-drift.yml index 7188528..5d7f88c 100644 --- a/.github/workflows/openapi-drift.yml +++ b/.github/workflows/openapi-drift.yml @@ -15,7 +15,9 @@ jobs: name: Check for OpenAPI spec drift runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Check for drift and create issue env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9a26c8..7b75e3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: - "v*" permissions: - contents: write + contents: read jobs: build: @@ -31,10 +31,12 @@ jobs: cross: false steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 with: targets: ${{ matrix.target }} @@ -67,7 +69,7 @@ jobs: run: cp target/${{ matrix.target }}/release/clickhousectl clickhousectl-${{ matrix.target }} - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: clickhousectl-${{ matrix.target }} path: clickhousectl-${{ matrix.target }} @@ -98,7 +100,7 @@ jobs: artifact: clickhousectl-x86_64-unknown-linux-musl steps: - name: Download artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: ${{ matrix.artifact }} @@ -114,11 +116,15 @@ jobs: name: Create Release needs: [build, smoke-test] runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: artifacts @@ -130,7 +136,7 @@ jobs: done - name: Create GitHub Release - uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe #v2 - with: - generate_release_notes: true - files: release/* + env: + GH_TOKEN: ${{ github.token }} + TAG: ${{ github.ref_name }} + run: gh release create "$TAG" --generate-notes release/* diff --git a/.github/workflows/test-cli.yml b/.github/workflows/test-cli.yml index c9752c6..d6dea0e 100644 --- a/.github/workflows/test-cli.yml +++ b/.github/workflows/test-cli.yml @@ -16,10 +16,12 @@ jobs: name: Test clickhousectl runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - name: Build run: cargo build -p clickhousectl diff --git a/.github/workflows/test-cloud-api.yml b/.github/workflows/test-cloud-api.yml index e28705a..9e2d484 100644 --- a/.github/workflows/test-cloud-api.yml +++ b/.github/workflows/test-cloud-api.yml @@ -16,10 +16,12 @@ jobs: name: Test clickhouse-cloud-api runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - name: Build run: cargo build -p clickhouse-cloud-api diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml index 067d7fe..ab30a0e 100644 --- a/.github/workflows/test-install.yml +++ b/.github/workflows/test-install.yml @@ -9,13 +9,18 @@ on: - "crates/clickhousectl/Cargo.toml" - ".github/workflows/test-install.yml" +permissions: + contents: read + jobs: unit-tests: name: Unit Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - run: cargo test url-probing: @@ -88,9 +93,11 @@ jobs: matrix: os: [ubuntu-22.04, ubuntu-24.04, macos-14, macos-15] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - name: Build CLI run: cargo build diff --git a/.github/workflows/test-postgres-integration.yml b/.github/workflows/test-postgres-integration.yml index 1be5974..66b6259 100644 --- a/.github/workflows/test-postgres-integration.yml +++ b/.github/workflows/test-postgres-integration.yml @@ -18,13 +18,15 @@ jobs: name: local postgres edge cases runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-03-27 - name: Cache cargo build - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2.9.1 - name: Build clickhousectl run: cargo build -p clickhousectl