From ff7e9e1261b29ade039da7703748b7439ff14f37 Mon Sep 17 00:00:00 2001 From: kslr Date: Sun, 20 Dec 2020 14:52:20 +0800 Subject: [PATCH] add semgrep lint --- .github/workflows/semgrep.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/semgrep.yml diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 000000000..dcad00dab --- /dev/null +++ b/.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 \ No newline at end of file