diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bb4a1ef..c588348 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false ref: ${{ github.event.inputs.branch }} - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f325c3..4f97f16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false ref: main - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d20585e..1a0e25e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,8 @@ jobs: src-only: "${{ steps.changes.outputs.src-only }}" steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: dorny/paths-filter/@v3.0.2 id: changes with: @@ -33,6 +35,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -57,6 +61,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@v4 @@ -85,6 +91,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Use Bun uses: oven-sh/setup-bun@v2 diff --git a/package.json b/package.json index 419dba4..537e16b 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "zx": "^7.2.2" }, "dependencies": { - "@elastic/transport": "^8.8.1", + "@elastic/transport": "^8.9.1", "tslib": "^2.5.0" }, "tap": { diff --git a/test/integration/index.js b/test/integration/index.js index b31f4a7..6b2f112 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -58,11 +58,8 @@ const skips = { // TODO: expects {"outlier_detection.auc_roc.value":0.99995}, gets {"outlier_detection.auc_roc.value":0.5} // remove if/when https://github.com/elastic/elasticsearch-clients-tests/issues/37 is resolved 'machine_learning/data_frame_evaluate.yml': ['*'], - // TODO: wait_for_active_shards and rollover with conditions are not supported on serverless - // see https://github.com/elastic/elasticsearch-clients-tests/issues/55 - 'indices/rollover.yml': ['*'], - // TODO: test runner needs to support ignoring 410 errors - 'indices/data_lifecycle.yml': ['*'], + // TODO: Cannot perform requested action because job [job-crud-test-apis] is not open + 'machine_learning/jobs_crud.yml': ['*'], // TODO: test runner needs to support ignoring 410 errors 'enrich/10_basic.yml': ['*'], // TODO: parameter `enabled` is not allowed in source @@ -71,18 +68,20 @@ const skips = { // TODO: expecting `ct_field` field mapping to be returned, but instead only finds `field` 'indices/simulate_template.yml': ['*'], 'indices/simulate_index_template.yml': ['*'], - // TODO: enable this test after connector API is included in client generation - 'entsearch/20_connector.yml': ['*'], - 'entsearch/30_sync_jobs_serverless.yml': ['*'], - 'entsearch/30_sync_jobs_stack.yml': ['*'], - 'entsearch/40_connector_secret.yml': ['*'], - 'entsearch/50_connector_updates.yml': ['*'], - 'entsearch/60_connector_updates_stack.yml': ['*'], // TODO: test currently times out 'inference/10_basic.yml': ['*'], + // TODO: Fix: "Trained model deployment [test_model] is not allocated to any nodes" + 'machine_learning/20_trained_model_serverless.yml': ['*'], // TODO: query_rules api not available yet 'query_rules/10_query_rules.yml': ['*'], 'query_rules/20_rulesets.yml': ['*'], + 'query_rules/30_test.yml': ['*'], + // TODO: security.putRole API not available + 'security/50_roles_serverless.yml': ['*'], + // TODO: expected undefined to equal 'some_table' + 'entsearch/50_connector_updates.yml': ['*'], + // TODO: resource_not_found_exception + 'tasks_serverless.yml': ['*'], } const shouldSkip = (file, name) => {