Skip to content

Add PR Code Security Workflow#2

Merged
luiz1361 merged 1 commit into
masterfrom
infra/add-pr-code-security-20260306122951
Apr 2, 2026
Merged

Add PR Code Security Workflow#2
luiz1361 merged 1 commit into
masterfrom
infra/add-pr-code-security-20260306122951

Conversation

@luiz1361

@luiz1361 luiz1361 commented Mar 6, 2026

Copy link
Copy Markdown

Summary

Adds a GitHub Actions workflow that runs on every pull request targeting the default branch:

  • Secret Detection - reusable workflow from prisma/.github
  • Code Scanning - reusable workflow from prisma/.github

Both workflows are maintained centrally in prisma/.github and invoked via uses: with secrets: inherit.

Why

Ensures all PRs are scanned for leaked secrets and code security issues before merge.

Summary by CodeRabbit

  • Chores
    • Enhanced automated security scanning for pull requests to ensure code quality and detection of potential security issues.

@luiz1361 luiz1361 self-assigned this Mar 6, 2026
@coderabbitai

coderabbitai Bot commented Mar 6, 2026

Copy link
Copy Markdown

Walkthrough

This pull request introduces a new GitHub Actions workflow file that executes code security checks (secret detection and code scanning) on pull requests to the master branch by reusing existing workflow definitions.

Changes

Cohort / File(s) Summary
GitHub Actions Configuration
.github/workflows/pr-code-security.yml
Add new workflow triggered on pull requests to master with two jobs (secret-detection and code-scanning) that reuse existing workflows from the organization's shared workflow repository and inherit secrets.
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add PR Code Security Workflow' clearly and accurately describes the main change: introducing a new GitHub Actions workflow for PR code security checks.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch infra/add-pr-code-security-20260306122951

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b4bc28d0-fb24-41a7-9d98-19b6880aba48

📥 Commits

Reviewing files that changed from the base of the PR and between 3f90a2e and 6e1757b.

📒 Files selected for processing (1)
  • .github/workflows/pr-code-security.yml

Comment thread .github/workflows/pr-code-security.yml
Comment thread .github/workflows/pr-code-security.yml
Comment thread .github/workflows/pr-code-security.yml

@Nova-ZA Nova-ZA left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved.

@luiz1361 luiz1361 merged commit 5e264b9 into master Apr 2, 2026
118 of 120 checks passed
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