From 4cb34bd13723a055a98ea4beee3ffc2c544743c6 Mon Sep 17 00:00:00 2001 From: "Yi (Alan) Wang" Date: Thu, 10 Oct 2024 15:07:52 -0700 Subject: [PATCH] update cicd action versions (#1007) --- .github/workflows/cd.yml | 36 +++++++++++++-------------- .github/workflows/ci.yml | 16 ++++++------ .github/workflows/codeql-analysis.yml | 8 +++--- pyproject.toml | 2 +- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index b15feb2c..e954efe5 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,9 +2,9 @@ name: CD env: - PYTHON_VERSION: 3.8 - POETRY_VERSION: 1.2.2 - NODE_VERSION: 16 + PYTHON_VERSION: 3.9 + POETRY_VERSION: 1.8.3 + NODE_VERSION: 20 DOCKER_IMAGE: metaphordata/connectors permissions: @@ -31,9 +31,9 @@ jobs: minor: ${{ steps.get-version.outputs.minor }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} @@ -41,7 +41,7 @@ jobs: - id: get-version name: Get version - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: script: | const fs = require('fs'); @@ -57,15 +57,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - name: Setup Poetry - uses: abatilo/actions-poetry@v2.1.4 + uses: abatilo/actions-poetry@v2 with: poetry-version: ${{ env.POETRY_VERSION }} @@ -80,7 +80,7 @@ jobs: poetry run coverage xml - name: Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -92,15 +92,15 @@ jobs: contents: write steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - name: Setup Poetry - uses: abatilo/actions-poetry@v2.1.4 + uses: abatilo/actions-poetry@v2 with: poetry-version: ${{ env.POETRY_VERSION }} @@ -111,7 +111,7 @@ jobs: -p ${{ secrets.PYPI_PASSWORD }} - name: Create tag - uses: actions/github-script@v5 + uses: actions/github-script@v7 with: github-token: ${{ github.token }} script: | @@ -139,15 +139,15 @@ jobs: needs: version steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} @@ -159,7 +159,7 @@ jobs: - name: Build Docker image if: steps.check.outcome == 'failure' - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . push: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a14760ec..105db550 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,8 +2,8 @@ name: CI env: - PYTHON_VERSION: 3.8 - POETRY_VERSION: 1.2.2 + PYTHON_VERSION: 3.9 + POETRY_VERSION: 1.8.3 # Run this build workflow for every new PR on: @@ -25,10 +25,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} @@ -56,7 +56,7 @@ jobs: poetry run coverage xml - name: Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -77,15 +77,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - name: Setup Poetry - uses: abatilo/actions-poetry@v2.1.4 + uses: abatilo/actions-poetry@v2 with: poetry-version: ${{ env.POETRY_VERSION }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 857d56b3..bad36205 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,11 +40,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -55,7 +55,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@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -69,4 +69,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/pyproject.toml b/pyproject.toml index 66935b86..ec30d8c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "metaphor-connectors" -version = "0.14.122" +version = "0.14.123" license = "Apache-2.0" description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app." authors = ["Metaphor "]