From 899ec38f93c1f8b8d7b588692218440c810191da Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Thu, 19 Dec 2024 08:39:47 +0200 Subject: [PATCH] Update check.yml --- .github/workflows/check.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 14b0305cf..4c0e3ab5a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -224,6 +224,16 @@ jobs: # check whether current version exists in the file grep $V SECURITY.md + # # # Check version match in __init__.py and project.toml files + + - name: Project version check + if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }} + run: | + # get full version from credsweeper package + V=$(python -c "from packaging.version import Version as V; import credsweeper; v=V(credsweeper.__version__); print(str(v))") + # check whether the exactly matched in project config + grep 'version = "$V"' project.toml + # # # from https://github.com/step-security-bot/CredSweeper/commit/dbc01f2709c56f69e2d8fd717156385f42b7bbf5 - name: Dependency Review