@@ -181,7 +181,7 @@ jobs:
181
181
runs-on : ubuntu-22.04
182
182
# Avoid running on forks since this job uses a private secret
183
183
# not available on forks, leading to failures.
184
- if : github.repository == 'falcosecurity/libs'
184
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'falcosecurity/libs'
185
185
needs : paths-filter
186
186
steps :
187
187
- name : Extract branch name
@@ -351,7 +351,7 @@ jobs:
351
351
needs : paths-filter
352
352
# Avoid running on forks since this job uses a private secret
353
353
# not available on forks, leading to failures.
354
- if : github.repository == 'falcosecurity/libs ' && github.event_name == 'pull_request ' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true')
354
+ if : github.event_name == 'pull_request ' && github.event.pull_request.head.repo.full_name == 'falcosecurity/libs ' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true')
355
355
uses : ./.github/workflows/reusable_kernel_tests.yaml
356
356
with :
357
357
# Use real branch's HEAD sha, not the merge commit
@@ -362,7 +362,7 @@ jobs:
362
362
needs : kernel-tests-dev
363
363
# Avoid running on forks since this job uses a private secret
364
364
# not available on forks, leading to failures.
365
- if : github.repository == 'falcosecurity/libs ' && github.event_name == 'pull_request ' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true')
365
+ if : github.event_name == 'pull_request ' && github.event.pull_request.head.repo.full_name == 'falcosecurity/libs ' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true')
366
366
runs-on : ubuntu-latest
367
367
steps :
368
368
- name : Download X64 matrix
0 commit comments