From 07ee56f03e3896888531cab9ac9c377dbec0e34c Mon Sep 17 00:00:00 2001 From: Voidd Date: Thu, 16 May 2024 15:47:31 -0700 Subject: [PATCH] Added semgrep CI/CD scan --- .github/workflows/semgrep.yml | 18 ++++++++++++++++++ 1 file changed, 18 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 00000000..076a3901 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,18 @@ +name: Semgrep +on: + pull_request: + workflow_dispatch: + +jobs: + semgrep: + name: Run Semgrep + runs-on: ubuntu-latest + timeout-minutes: 30 + container: + # A Docker image with Semgrep installed. Do not change this. + image: returntocorp/semgrep + steps: + - uses: actions/checkout@v4 + - run: semgrep ci + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN_PUBLIC }}