From dc9b12fd37235ed4e355fd448bc0a6d61e3cda32 Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Mon, 24 Mar 2025 00:40:41 +0000 Subject: [PATCH] ci: add semgrep (#13643) Signed-off-by: Jens Langhammer --- .github/workflows/semgrep.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 0000000000..a1a7509f27 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,27 @@ +name: authentik-semgrep +on: + workflow_dispatch: {} + pull_request: {} + push: + branches: + - main + - master + paths: + - .github/workflows/semgrep.yml + schedule: + # random HH:MM to avoid a load spike on GitHub Actions at 00:00 + - cron: '12 15 * * *' +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-latest + permissions: + contents: read + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + container: + image: semgrep/semgrep + if: (github.actor != 'dependabot[bot]') + steps: + - uses: actions/checkout@v4 + - run: semgrep ci