Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Dec 1, 2022
1 parent 1d806e5 commit dbe4039
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dbe4039

Please sign in to comment.