Skip to content

Add Gitleaks to project and security action#26

Merged
epcgrs merged 2 commits intomainfrom
hook-sec
Sep 15, 2025
Merged

Add Gitleaks to project and security action#26
epcgrs merged 2 commits intomainfrom
hook-sec

Conversation

@epcgrs
Copy link
Owner

@epcgrs epcgrs commented Sep 15, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 15, 2025 05:09
@vercel
Copy link

vercel bot commented Sep 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curso-dev Ready Ready Preview Comment Sep 15, 2025 5:15am

Copy link

Copilot AI left a comment

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 Gitleaks security scanning to detect secrets and sensitive information in the codebase. It integrates secret scanning into both local development workflows and CI/CD pipeline to prevent accidental exposure of sensitive data.

  • Adds Gitleaks configuration with custom rules for detecting various secret types (API keys, tokens, private keys)
  • Integrates secret scanning into the pre-commit hook to catch secrets before they're committed
  • Creates a GitHub Actions workflow to run security scans on pull requests

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

File Description
package.json Adds npm scripts for running Gitleaks scans locally with different options
.husky/pre-commit Integrates Gitleaks into pre-commit hook to prevent committing secrets
.gitleaks.toml Configuration file defining secret detection rules and allowlists
.github/workflows/security.yaml GitHub Actions workflow for automated secret scanning on PRs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@epcgrs epcgrs merged commit 1253338 into main Sep 15, 2025
7 checks passed
@epcgrs epcgrs deleted the hook-sec branch September 15, 2025 05:18
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.

2 participants