diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 0000000000000..076a3901f680e --- /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 }}