diff --git a/.github/workflows/build-own-sample.yml b/.github/workflows/build-own-sample.yml
index 070df474..01406d9b 100644
--- a/.github/workflows/build-own-sample.yml
+++ b/.github/workflows/build-own-sample.yml
@@ -6,9 +6,11 @@ on:
- main
paths:
- 'samples/OwinSample/**'
+ - 'Directory.*.props'
pull_request:
paths:
- 'samples/OwinSample/**'
+ - 'Directory.*.props'
permissions: read-all
diff --git a/Directory.Build.props b/Directory.Build.props
index bd4cb499..8eb09406 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,6 +4,10 @@
latest
true
+
+ all
+ moderate
+ true