Add code security scanning

This commit is contained in:
silas 2022-10-10 19:39:04 +01:00 committed by GitHub
parent 99a255ad75
commit 24ef654772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
.github/workflows/ci-codescan.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Code Security Scan
on:
pull_request:
branches: 'main'
push:
jobs:
semgrep:
name: Code Scan
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- name: Checkout code
uses: actions/checkout@v3
- run: semgrep ci
env:
SEMGREP_RULES: p/typescript