From 7621612eb82a7e71e5e85b9c98b3247f71c85100 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Fri, 27 Jun 2025 16:29:13 -0700 Subject: [PATCH] Ensure workflows only run for wolfssl repository_owner --- .github/workflows/ada.yml | 1 + .github/workflows/cmake.yml | 2 +- .github/workflows/ipmitool.yml | 2 +- .github/workflows/mbedtls.yml | 2 +- .github/workflows/msys2.yml | 1 + .github/workflows/nss.yml | 2 +- .github/workflows/openldap.yml | 2 ++ .github/workflows/sssd.yml | 1 + 8 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ada.yml b/.github/workflows/ada.yml index 59fd34ae2..9691e425b 100644 --- a/.github/workflows/ada.yml +++ b/.github/workflows/ada.yml @@ -9,6 +9,7 @@ on: jobs: build: + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 09f1d4f06..9419a12a5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -8,7 +8,7 @@ on: jobs: build: - + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/ipmitool.yml b/.github/workflows/ipmitool.yml index c23b407c5..9c38a66e8 100644 --- a/.github/workflows/ipmitool.yml +++ b/.github/workflows/ipmitool.yml @@ -16,9 +16,9 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL + if: github.repository_owner == 'wolfssl' # Just to keep it the same as the testing target runs-on: ubuntu-22.04 - if: github.repository_owner == 'wolfssl' # This should be a safe limit for the tests to run. timeout-minutes: 4 steps: diff --git a/.github/workflows/mbedtls.yml b/.github/workflows/mbedtls.yml index f9830fcf6..e705c05bc 100644 --- a/.github/workflows/mbedtls.yml +++ b/.github/workflows/mbedtls.yml @@ -54,10 +54,10 @@ jobs: mbedtls_test: name: Test interop with mbedtls + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-latest needs: build_mbedtls timeout-minutes: 10 - if: github.repository_owner == 'wolfssl' steps: - name: Disable IPv6 (IMPORTANT, OTHERWISE DTLS MBEDTLS CLIENT WON'T CONNECT) run: echo 1 | sudo tee /proc/sys/net/ipv6/conf/lo/disable_ipv6 diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index b6cf704f2..f1f0f5d74 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -14,6 +14,7 @@ concurrency: jobs: msys2: + if: github.repository_owner == 'wolfssl' runs-on: windows-latest defaults: run: diff --git a/.github/workflows/nss.yml b/.github/workflows/nss.yml index e7d911bd1..821bc2c91 100644 --- a/.github/workflows/nss.yml +++ b/.github/workflows/nss.yml @@ -59,10 +59,10 @@ jobs: nss_test: name: Test interop with nss + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-22.04 needs: build_nss timeout-minutes: 10 - if: github.repository_owner == 'wolfssl' steps: - name: Checking if we have nss in cache uses: actions/cache/restore@v4 diff --git a/.github/workflows/openldap.yml b/.github/workflows/openldap.yml index b77dd3ea9..2074b2df9 100644 --- a/.github/workflows/openldap.yml +++ b/.github/workflows/openldap.yml @@ -15,6 +15,7 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL + if: github.repository_owner == 'wolfssl' # Just to keep it the same as the testing target runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. @@ -49,6 +50,7 @@ jobs: - osp_ref: 2.6.7 git_ref: OPENLDAP_REL_ENG_2_6_7 name: ${{ matrix.osp_ref }} + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 20 diff --git a/.github/workflows/sssd.yml b/.github/workflows/sssd.yml index 4ef3a7968..c5be3d10f 100644 --- a/.github/workflows/sssd.yml +++ b/.github/workflows/sssd.yml @@ -47,6 +47,7 @@ jobs: # List of releases to test ref: [ 2.9.1 ] name: ${{ matrix.ref }} + if: github.repository_owner == 'wolfssl' runs-on: ubuntu-22.04 container: image: quay.io/sssd/ci-client-devel:ubuntu-latest