From 0ca67c50f00a04e0108215052d15e3e50e5cd394 Mon Sep 17 00:00:00 2001 From: offa Date: Sun, 17 Mar 2024 14:11:52 +0000 Subject: [PATCH] Update GH Actions and fix NodeJS16 deprecation warnings (#1349) * [ci] Update Actions to fix NodeJS16 deprecation warnings * [ci] Set Codecov token --- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/test.yml | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b0bb650e7..56d21ae4c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -56,7 +56,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@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -69,6 +69,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99a4155d8..02e17ace8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: python-version: [ '3.6', '3.7', '3.8', '3.9', '3.11', '3.12' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build Docker run: | make docker-qa-build PYTHON_VERSION=${{matrix.python-version}} @@ -31,7 +31,8 @@ jobs: make docker-qa PYTHON_VERSION=${{matrix.python-version}} - name: Creating coverage report if: ${{ ( matrix.python-version == '3.8' ) }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./coverage.xml fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }}