From dc4dd517796f5d58843a883ab20d3d2d719cac0d Mon Sep 17 00:00:00 2001 From: benoit74 Date: Wed, 27 Mar 2024 08:25:14 +0000 Subject: [PATCH 1/2] Import saxutils instead of just sax --- src/sotoki/utils/preparation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sotoki/utils/preparation.py b/src/sotoki/utils/preparation.py index bf9a82c..953f88c 100644 --- a/src/sotoki/utils/preparation.py +++ b/src/sotoki/utils/preparation.py @@ -10,7 +10,7 @@ import os import re import pathlib -import xml.sax +import xml.sax.saxutils import subprocess from typing import Union From 0536e40a46b73695a9acb0b8a9a520362c5fc2c5 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Wed, 27 Mar 2024 08:28:12 +0000 Subject: [PATCH 2/2] Upgrade Github actions --- .github/workflows/ci.yml | 2 +- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/docker.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c70bacf..28f2b3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: build-and-run: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3.4.0 + - uses: actions/checkout@v4 - name: Build image run: docker build . -t sotoki - run: mkdir -p output diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b8e74d6..109c108 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,19 +24,19 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }} - 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/docker.yml b/.github/workflows/docker.yml index 259558e..454ebae 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,7 +12,7 @@ jobs: name: Deploy Docker Image runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3.4.0 + - uses: actions/checkout@v4 - name: Build and push uses: openzim/docker-publish-action@v10 with: