diff --git a/.github/workflows/drivers_ci.yml b/.github/workflows/drivers_ci.yml index 4ec7de7ac08..aa86f1ec219 100644 --- a/.github/workflows/drivers_ci.yml +++ b/.github/workflows/drivers_ci.yml @@ -181,7 +181,7 @@ jobs: runs-on: ubuntu-22.04 # Avoid running on forks since this job uses a private secret # not available on forks, leading to failures. - if: github.repository == 'falcosecurity/libs' + if: github.repository_owner == 'falcosecurity' needs: paths-filter steps: - name: Extract branch name @@ -351,7 +351,7 @@ jobs: needs: paths-filter # Avoid running on forks since this job uses a private secret # not available on forks, leading to failures. - 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') + if: github.repository_owner == 'falcosecurity' && github.event_name == 'pull_request' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true') uses: ./.github/workflows/reusable_kernel_tests.yaml with: # Use real branch's HEAD sha, not the merge commit @@ -362,7 +362,7 @@ jobs: needs: kernel-tests-dev # Avoid running on forks since this job uses a private secret # not available on forks, leading to failures. - 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') + if: github.repository_owner == 'falcosecurity' && github.event_name == 'pull_request' && (needs.paths-filter.outputs.driver == 'true' || needs.paths-filter.outputs.libscap == 'true' || needs.paths-filter.outputs.libpman == 'true') runs-on: ubuntu-latest steps: - name: Download X64 matrix