Skip to content

Commit 83b985b

Browse files
Update .github/workflows/reusable-trufflehog.yml
Co-authored-by: James C <87319125+jamesc-grafana@users.noreply.github.com>
1 parent 397b5be commit 83b985b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/reusable-trufflehog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
9292
# PR: Scan only changed files (using three-dot diff to show only PR changes)
9393
echo "Scanning changed files in PR..."
94-
git diff --name-only origin/${{ github.event.pull_request.base.ref }}...${{ github.sha }} > changed-files.txt
94+
git diff --name-only origin/${BASE_REF}...${SHA} > changed-files.txt
9595
9696
if [[ -s changed-files.txt ]]; then
9797
while IFS= read -r file; do

0 commit comments

Comments
 (0)