From 77b1be85e90b100d8ab0e619c8c173d020de7e53 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Mon, 25 Aug 2025 10:27:30 +0300 Subject: [PATCH 1/2] worflows: Avoid scheduled staging tests in forks Scheduled tests do not seem useful in fork repos even if they have workflows enabled. Signed-off-by: Jussi Kukkonen --- .github/workflows/staging-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/staging-tests.yml b/.github/workflows/staging-tests.yml index 29e07dfe..c9b788b2 100644 --- a/.github/workflows/staging-tests.yml +++ b/.github/workflows/staging-tests.yml @@ -11,6 +11,7 @@ permissions: {} jobs: staging-tests: + if: github.event_name != 'schedule' || github.repository == 'sigstore/sigstore-python' runs-on: ubuntu-latest permissions: # Needed to access the workflow's OIDC identity. From 6cbeae38a9d589aea6cc7c5983dec436cd510c16 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Mon, 25 Aug 2025 10:43:17 +0300 Subject: [PATCH 2/2] workflows: don't mark CI failed if we skipped testing scheduled CI test jobs are skipped in forks: Do the same for all-tests-pass. This should prevent the run from being listed as a failure in workflow runs list. Signed-off-by: Jussi Kukkonen --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f844bc4..1b4c4748 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: if: ${{ matrix.conf.os == 'ubuntu-latest' }} all-tests-pass: - if: always() + if: always() && (github.event_name != 'schedule' || github.repository == 'sigstore/sigstore-python') needs: - test