Skip to content

Commit e87f62d

Browse files
committed
fix: always run image scan so we can compare PRs
1 parent b730bf0 commit e87f62d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/m365_image_build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ jobs:
128128
exit 0
129129
outputs:
130130
image: ${{ steps.build-and-push.outputs.image }}
131-
m365-scan:
131+
scan:
132132
name: Scan
133-
if: github.ref == 'refs/heads/main'
133+
# This condition prevents duplicate runs.
134+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
134135
permissions:
135136
security-events: write
136137
needs: build

0 commit comments

Comments
 (0)