Browse Source

add semgrep lint

kslr 4 years ago
parent
commit
ff7e9e1261
1 changed files with 14 additions and 0 deletions
  1. 14 0
      .github/workflows/semgrep.yml

+ 14 - 0
.github/workflows/semgrep.yml

@@ -0,0 +1,14 @@
+name: Semgrep
+on: [pull_request]
+jobs:
+  semgrep:
+    name: Scan
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - uses: returntocorp/semgrep-action@v1
+        env: # Optional environment variable for inline PR comments (beta)
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        with:
+          publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
+          publishDeployment: 241