Skip to content

feat: implement security scanning workflows (CodeQL, ZAP, Gitleaks, Dependabot)#134

Merged
devpathindcommunity-india merged 6 commits into
masterfrom
feature/security-workflows
May 20, 2026
Merged

feat: implement security scanning workflows (CodeQL, ZAP, Gitleaks, Dependabot)#134
devpathindcommunity-india merged 6 commits into
masterfrom
feature/security-workflows

Conversation

@Aditya948351

Copy link
Copy Markdown
Collaborator

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.

Copilot AI review requested due to automatic review settings May 20, 2026 05:17
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 of steps:.
    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 the javascript-typescript CodeQL language so TypeScript is analyzed correctly.
      matrix:
        language: [ 'javascript' ]


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/zap-api-scan.yml Outdated
Comment thread .github/workflows/zap-api-scan.yml Outdated
Comment thread .github/workflows/gitleaks.yml
Comment thread .github/workflows/zap-api-scan.yml Outdated
Comment thread .github/workflows/codeql.yml
@devpathindcommunity-india devpathindcommunity-india merged commit 052647a into master May 20, 2026
4 checks passed
@devpathindcommunity-india devpathindcommunity-india deleted the feature/security-workflows branch May 20, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants