From e89ea85804b33dd99d590f51833846b4d1b2c0d7 Mon Sep 17 00:00:00 2001 From: Hendrik Garske Date: Sat, 16 May 2026 19:13:03 +0200 Subject: [PATCH] Add security scan workflow --- .github/workflows/security.yml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/security.yml diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml new file mode 100644 index 0000000..630b45e --- /dev/null +++ b/.github/workflows/security.yml @@ -0,0 +1,37 @@ +name: Security Scan + +on: + pull_request: + branches: ["**"] + push: + branches: [main] + +permissions: + contents: read + security-events: write + pull-requests: write + +jobs: + dependency-review: + name: Dependency Review + runs-on: [self-hosted, linux, x64, docker] + if: github.event_name == "pull_request" + steps: + - uses: actions/checkout@v4 + - uses: actions/dependency-review-action@v4 + with: + fail-on-severity: high + comment-summary-in-pr: always + + codeql: + name: CodeQL + runs-on: [self-hosted, linux, x64, docker] + permissions: + security-events: write + steps: + - uses: actions/checkout@v4 + - uses: github/codeql-action/init@v3 + with: + languages: javascript-typescript + - uses: github/codeql-action/autobuild@v3 + - uses: github/codeql-action/analyze@v3