From 400bf9bc8dab12f20a18727f35b196f7d8b48a6c Mon Sep 17 00:00:00 2001 From: Yu-Chuan Hung Date: Mon, 30 Mar 2026 22:06:29 +0800 Subject: [PATCH] ci: use ubuntu-slim runner for lightweight CI jobs - take.yml: issue_assign (curl only) - large_files.yml: check-files (git only) - stale.yml: close-stale-prs (actions/stale) - labeler.yml: process (actions/labeler) - codeql.yml: analyze (codeql-action on Actions YAML) - dev.yml: prettier (setup-node + prettier) --- .github/workflows/codeql.yml | 2 +- .github/workflows/dev.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/large_files.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/take.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 86d26ea142f40..be04992378b3d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -32,7 +32,7 @@ permissions: jobs: analyze: name: Analyze Actions - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: read security-events: write diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 2fec343650914..c2a06ed392519 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -41,7 +41,7 @@ jobs: prettier: name: Use prettier to check formatting of documents - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a575b39577477..2d42d6ff964e8 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -31,7 +31,7 @@ on: jobs: process: name: Process - runs-on: ubuntu-latest + runs-on: ubuntu-slim # only run for users whose permissions allow them to update PRs # otherwise labeler is failing: # https://github.com/apache/datafusion/issues/3743 diff --git a/.github/workflows/large_files.yml b/.github/workflows/large_files.yml index 12b7bae76ab32..12a5599189216 100644 --- a/.github/workflows/large_files.yml +++ b/.github/workflows/large_files.yml @@ -27,7 +27,7 @@ on: jobs: check-files: - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index ec7f54ec24dbc..b7ad73a593106 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -22,7 +22,7 @@ on: jobs: close-stale-prs: - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: issues: write pull-requests: write diff --git a/.github/workflows/take.yml b/.github/workflows/take.yml index ffb5f728e04c1..e34bf869ef8a0 100644 --- a/.github/workflows/take.yml +++ b/.github/workflows/take.yml @@ -25,7 +25,7 @@ permissions: jobs: issue_assign: - runs-on: ubuntu-latest + runs-on: ubuntu-slim if: (!github.event.issue.pull_request) && (github.event.comment.body == 'take' || github.event.comment.body == 'untake') concurrency: group: ${{ github.actor }}-issue-assign