snipe-it/.github/workflows/SA-semgrep.yml
Maciej Domanski 967ee714a1 sa tooling
2022-03-16 12:14:18 +01:00

30 lines
656 B
YAML

name: Semgrep Security Scan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
semgrep-security-scan:
name: Semgrep Security Scan
runs-on: ubuntu-latest
# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
# Fetch project source
- uses: actions/checkout@v2
- uses: returntocorp/semgrep-action@v1
with:
config: >- # more at semgrep.dev/explore
p/security-audit
p/secrets
p/phpcs-security-audit
env:
SEMGREP_TIMEOUT: 9900