Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 26 additions & 4 deletions .github/workflows/pr-gitleaks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
name: CB Secret PR Scan
name: Secret PR Scan

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

jobs:
SecretScanning:
uses: chargebee/cb-secrets-scanner/.github/workflows/cb-secret-scan.yml@main
secrets: inherit
scan:
name: Secret PR Scan
runs-on: ubuntu-latest
Comment thread
coderabbitai[bot] marked this conversation as resolved.
steps:
- name: Get the file name changed in the PR
id: pr_files
run: |
changed_files=$(curl -s -H "Authorization: token ${{
secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files | jq -r '.[].filename')
echo "Changed files: $changed_files"

echo "CHANGED_FILES<<EOF"$'\n'"$changed_files"$'\n'EOF >> $GITHUB_OUTPUT

- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: gitleaks/gitleaks-action@v2
Comment thread
coderabbitai[bot] marked this conversation as resolved.
env:
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GITLEAKS_LICENSE: '${{ secrets.GITLEAKS_LICENSE_PUBLIC}}'
GITLEAKS_ENABLE_SUMMARY: false
8 changes: 0 additions & 8 deletions .github/workflows/pr-lint.js

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/pr-lint.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/pr-size-check.yml

This file was deleted.

Loading