Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulgandhijayabalan-bc authored Jul 24, 2024
1 parent 0ece09a commit a288923
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ permissions:
on:
pull_request:
branches:
- "**"
- "${{ github.event.repository.default_branch }}"

jobs:
trufflehog-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Install Trufflehog
run: |
Expand All @@ -25,7 +27,7 @@ jobs:
- name: Run Trufflehog Scan
id: trufflehog
run: |
trufflehog https://github.com/rahulgandhijayabalan-bc/ccs-ppg-notification-api.git --regex --entropy=TRUE
trufflehog ${{ github.repository }} --regex --entropy=TRUE
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
Expand Down

0 comments on commit a288923

Please sign in to comment.