feat: implement security scanning workflows (CodeQL, ZAP, Gitleaks, Dependabot)#134
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
This PR adds repository-level security automation by introducing GitHub Actions workflows for SAST (CodeQL), secret scanning (Gitleaks), and DAST (OWASP ZAP), plus a Dependabot configuration to keep dependencies updated.
Changes:
- Add a CodeQL workflow to run scheduled and PR/push static analysis.
- Add Gitleaks secret scanning on PR/push.
- Add an OWASP ZAP baseline scan workflow that builds and serves the Next.js app for local scanning, and add Dependabot update schedules.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| .github/workflows/zap-api-scan.yml | Adds a ZAP baseline scan against a locally started Next.js server. |
| .github/workflows/gitleaks.yml | Adds a Gitleaks workflow for secret scanning on PRs/pushes. |
| .github/workflows/codeql.yml | Adds CodeQL analysis workflow (PR/push + scheduled). |
| .github/dependabot.yml | Configures weekly Dependabot updates for npm and GitHub Actions. |
Comments suppressed due to low confidence (2)
.github/workflows/codeql.yml:30
steps:is followed by list items that are not indented under it. This makes the workflow YAML invalid and will prevent the CodeQL job from running. Indent all- name:entries so they are children ofsteps:.
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
.github/workflows/codeql.yml:24
- The CodeQL language is set to
javascript, but this repo is primarily TypeScript/TSX (Next.js). Use thejavascript-typescriptCodeQL language so TypeScript is analyzed correctly.
matrix:
language: [ 'javascript' ]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR adds comprehensive security scanning to the repository CI/CD pipeline, including CodeQL for SAST, ZAP for DAST, Gitleaks for secret scanning, and automated Dependabot configuration.