From d391e941a9e89344287ae659e3b10a3471b10616 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 24 Aug 2023 12:02:09 -0400 Subject: [PATCH] sec: add semgrep integration --- .github/workflows/semgrep.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 0000000..bd9233d --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,19 @@ +name: Semgrep +on: + pull_request: {} + push: + branches: ["master", "main"] +permissions: + contents: read +jobs: + semgrep: + name: Scan + runs-on: ubuntu-latest + container: + image: returntocorp/semgrep + if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') + steps: + - uses: actions/checkout@v3 + - run: semgrep ci + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}