From 1b5cfe29e436b6f89f05fea46da93b2bcaf53afd Mon Sep 17 00:00:00 2001 From: Pablo Caro Revuelta Date: Thu, 2 Jul 2026 09:20:30 +0200 Subject: [PATCH 1/2] ci: bump checkout and setup-python to fix Node 20 deprecation GitHub Actions runners are dropping Node 20 support, forcing actions pinned to it onto Node 24 with a deprecation warning. Bump actions/checkout to v7 and actions/setup-python to v6 in the build and deploy workflows to versions that target current Node natively. Part of LITE-33583. --- .github/workflows/build.yml | 8 ++++---- .github/workflows/deploy.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b11c4b3..6556f4b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,11 +17,11 @@ jobs: python-version: ['3.10', '3.11', '3.12'] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -41,11 +41,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Set up Python '3.10.0' - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: '3.10' - name: Install dependencies diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a1a0b03..884472a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,9 +8,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: '3.10' - name: Install dependencies From 22fba358016497da5c1f96459fc097a597dc7179 Mon Sep 17 00:00:00 2001 From: Pablo Caro Revuelta Date: Thu, 2 Jul 2026 12:10:00 +0200 Subject: [PATCH 2/2] ci: replace deprecated SonarCloud action and bump github-script The SonarScanner (sonarcloud-github-action) is deprecated in favour of sonarqube-scan-action, and its internals still pull actions/cache@v4, which targets the now-deprecated Node 20 runtime. Switch to SonarSource/sonarqube-scan-action@v8 (runs on Node 24), setting SONAR_HOST_URL to https://sonarcloud.io since the generic scan action has no SonarCloud default; projectKey/organization stay in sonar-project.properties. Also bump actions/github-script v6 (Node 16) to v9 (Node 24) in deploy.yml, the remaining action on a deprecated runtime. --- .github/workflows/build.yml | 3 ++- .github/workflows/deploy.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6556f4b..a0b92fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,10 +60,11 @@ jobs: run: | sed -i 's/\/home\/runner\/work\/connect-python-openapi-client\/connect-python-openapi-client\//\/github\/workspace\//g' coverage.xml - name: SonarCloud - uses: SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarqube-scan-action@v8 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: https://sonarcloud.io - name: Wait sonar to process report uses: jakejarvis/wait-action@master with: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 884472a..94ff722 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: run: | poetry run pytest - name: Extract tag name - uses: actions/github-script@v6 + uses: actions/github-script@v9 id: tag with: github-token: ${{ secrets.GITHUB_TOKEN }}