From 39cffcd963e4f473a90e922862301dca9dfb2089 Mon Sep 17 00:00:00 2001 From: Egor Voynov Date: Fri, 16 Aug 2024 12:16:22 +0200 Subject: [PATCH 1/2] Update Codeql checks v1->v3 and fix percona repo setup --- .github/workflows/codeql-analysis.yml | 48 +++------------------------ scripts/install-percona-package | 2 +- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ce7e906..82e2b5c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,67 +1,27 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# name: "CodeQL" - on: push: branches: [ master ] pull_request: - # The branches below must be a subset of the branches above branches: [ master ] schedule: - cron: '42 20 * * 6' - jobs: analyze: name: Analyze runs-on: ubuntu-latest - strategy: fail-fast: false matrix: language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - steps: - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + 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. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # 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@v1 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/scripts/install-percona-package b/scripts/install-percona-package index 400d9bf..8b6aba5 100755 --- a/scripts/install-percona-package +++ b/scripts/install-percona-package @@ -2,6 +2,6 @@ [ -n "$1" ] || { echo "must pass percona package version"; exit 1; } PERCONA_PACKAGE_VERSION="$1" export DEBIAN_FRONTEND="noninteractive" -sudo percona-release setup ps80 +sudo percona-release setup pxb-80 sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew percona-xtrabackup-80="${PERCONA_PACKAGE_VERSION}" mysqld --version From 76c3f4b8d8e2097eb5e4a1514318224693141882 Mon Sep 17 00:00:00 2001 From: Egor Voynov Date: Fri, 16 Aug 2024 12:34:46 +0200 Subject: [PATCH 2/2] actions/checkout v4->v5, actions/setup-python v4->v5 --- .github/workflows/tests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index bec0d7b..460fcb5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -26,7 +26,7 @@ jobs: steps: - id: checkout-code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Cache APT Packages @@ -35,7 +35,7 @@ jobs: version: 1.0 packages: sudo lsb-release wget tzdata libsnappy-dev libpq5 libpq-dev software-properties-common build-essential rsync curl - id: prepare-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -102,14 +102,14 @@ jobs: steps: - id: checkout-code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache APT Packages uses: awalsh128/cache-apt-pkgs-action@v1.1.2 with: version: 1.0 packages: sudo lsb-release wget tzdata libsnappy-dev libpq5 libpq-dev software-properties-common build-essential rsync curl git libaio1 libmecab2 psmisc - id: prepare-python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip