Skip to content

Semgrep - Upload sarif to github security (#69) #112

Semgrep - Upload sarif to github security (#69)

Semgrep - Upload sarif to github security (#69) #112

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
cache: 'pip'
- run: python -m pip install -r requirements.txt
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: echo "SKIP=semgrep" >> $GITHUB_ENV
- run: pre-commit run --show-diff-on-failure --color=always --all-files