Skip to content

Commit

Permalink
Update check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek authored Dec 19, 2024
1 parent 750ceff commit 899ec38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 899ec38

Please sign in to comment.