Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/pr-leakage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: pr-leakage

on:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions:
contents: read
pull-requests: read

jobs:
check:
# Pinned to @main until the reusable workflow gets a tagged release; tracked as
# follow-up so this caller can pin to a stable ref.
uses: ConductorOne/github-workflows/.github/workflows/pr-leakage-check.yaml@main
with:
pr_number: ${{ github.event.pull_request.number }}
secrets: inherit
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.

🟡 Suggestion: secrets: inherit forwards all repository secrets to the reusable workflow. Since the scanner only needs read access to PR metadata (and GITHUB_TOKEN is automatically available to reusable workflows), consider dropping this line to follow least-privilege. If the reusable workflow later adds a secrets: input, this would silently expose every repo secret to it.

Suggested change
secrets: inherit

Loading