From dbe4039c8f6539851849e7f1fb69530a65837d80 Mon Sep 17 00:00:00 2001 From: Bradley Lowekamp Date: Thu, 1 Dec 2022 09:08:30 -0500 Subject: [PATCH] fix up --- .github/workflows/main.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c01c6fb..ab6929e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,27 +17,20 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - # The specific pre-commit tests configurations are found in - # the .pre-commit-config.yaml file at the root of the repository - - uses: actions/setup-python@v4 - - uses: pre-commit/action@v2.0.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python 3.9 uses: actions/setup-python@v4 with: python-version: 3.9 + - name: Linting + run: | + python -m pip install pre-commit trufflehog3>=3.0 + pre-commit run --all-files - name: set PY run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - uses: actions/cache@v3 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - - name: Linting - run: | - pip install pre-commit trufflehog3>=3.0 - pre-commit run --all-files - name: Run trufflehog3 detector run: | trufflehog3 -v -c trufflehog3.yml . && echo "tufflehog3 OK"