diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index afc0174..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: "CodeQL" - -on: - # workflow_dispatch enables manual triggering of the workflow - workflow_dispatch: - schedule: - - cron: '12 14 * * 5' -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - steps: - - name: S24 static application security testing (SAST) action - uses: scout24/s24-sast-action@v1 - with: - languages: javascript - diff --git a/.github/workflows/security-analysis.yml b/.github/workflows/security-analysis.yml new file mode 100644 index 0000000..283160e --- /dev/null +++ b/.github/workflows/security-analysis.yml @@ -0,0 +1,16 @@ +name: "Security Static Analysis" + +on: + pull_request: {} + workflow_dispatch: {} + schedule: + - cron: '46 17 4 * *' +jobs: + scan: + uses: scout24/s24-sast-action/.github/workflows/security-analysis.yml@v3 + + secrets: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} +