We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b730bf0 commit e87f62dCopy full SHA for e87f62d
1 file changed
.github/workflows/m365_image_build.yaml
@@ -128,9 +128,10 @@ jobs:
128
exit 0
129
outputs:
130
image: ${{ steps.build-and-push.outputs.image }}
131
- m365-scan:
+ scan:
132
name: Scan
133
- if: github.ref == 'refs/heads/main'
+ # 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
135
permissions:
136
security-events: write
137
needs: build
0 commit comments