From 1c80682afe1ace3ad96982233b90e255ed9b4a20 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 15 Aug 2024 14:53:58 +0100 Subject: ci: remove check if py files exist since we have some python/terraform files now, we shouldn't require this now! --- .github/workflows/on-commit.yml | 16 ---------------- 1 file changed, 16 deletions(-) (limited to '.github/workflows/on-commit.yml') diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index e429651..2b6061c 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -6,23 +6,7 @@ on: - 'main' jobs: - check-if-py-files-exist: - runs-on: ubuntu-latest - outputs: - py_files_exist: ${{ steps.check.outputs.py_files_exist }} - steps: - - uses: actions/checkout@v2 - - id: check_files - run: | - if [ -n "$(find . -name '*.py')" ]; then - echo "::set-output name=py_files_exist::true" - else - echo "::set-output name=py_files_exist::false" - fi - quality-checks: - needs: check-if-py-files-exist - if: ${{ needs.check-if-py-files-exist.outputs.py_files_exist == 'true' }} runs-on: ubuntu-latest steps: - uses : actions/checkout@v2 -- cgit v1.2.3 From 65e899353bb71be9a087c5738e6b3c2abdda87e4 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Thu, 15 Aug 2024 15:06:13 +0100 Subject: ci: update bandit command --- .github/workflows/on-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/on-commit.yml') diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index 2b6061c..5f3aebf 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -27,7 +27,7 @@ jobs: black --check . - name: 'Python: Security' run: | - bandit -r . + bandit -lll */*.py *c/*.py safety check - name: 'Terraform: Setup' uses: hashicorp/setup-terraform@v3 -- cgit v1.2.3