From 3cc707621f2b2b8a733008ab6e27eceddc5a4f67 Mon Sep 17 00:00:00 2001 From: Stefano Cordio Date: Sat, 20 Dec 2025 11:32:02 +0100 Subject: [PATCH] Prevent execution of scheduled GitHub Actions on forks Signed-off-by: Stefano Cordio --- .github/workflows/gradle-wrapper-upgrade-execution.yml | 1 + .github/workflows/update-antora-ui-spring.yml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle-wrapper-upgrade-execution.yml b/.github/workflows/gradle-wrapper-upgrade-execution.yml index 8915d994bc..fadbaefdc3 100644 --- a/.github/workflows/gradle-wrapper-upgrade-execution.yml +++ b/.github/workflows/gradle-wrapper-upgrade-execution.yml @@ -9,6 +9,7 @@ permissions: jobs: upgrade_wrapper: name: Execution + if: ${{ github.repository == 'spring-projects/spring-security' }} runs-on: ubuntu-latest steps: - name: Set up Git configuration diff --git a/.github/workflows/update-antora-ui-spring.yml b/.github/workflows/update-antora-ui-spring.yml index 30146477ab..d6f780c7ce 100644 --- a/.github/workflows/update-antora-ui-spring.yml +++ b/.github/workflows/update-antora-ui-spring.yml @@ -12,8 +12,9 @@ permissions: jobs: update-antora-ui-spring: - runs-on: ubuntu-latest name: Update on Supported Branches + if: ${{ github.repository == 'spring-projects/spring-security' }} + runs-on: ubuntu-latest strategy: matrix: branch: [ '6.5.x', '7.0.x', 'main' ] @@ -25,8 +26,9 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} antora-file-path: 'docs/antora-playbook.yml' update-antora-ui-spring-docs-build: - runs-on: ubuntu-latest name: Update on docs-build + if: ${{ github.repository == 'spring-projects/spring-security' }} + runs-on: ubuntu-latest steps: - uses: spring-io/spring-doc-actions/update-antora-spring-ui@415e2b11a766ba64799fffb5c97a4f7e17f677cf name: Update