Skip to content

Commit 42245b6

Browse files
committed
Prevent execution of scheduled GitHub Actions on forks
Signed-off-by: Stefano Cordio <[email protected]>
1 parent 6d6552a commit 42245b6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/gradle-wrapper-upgrade-execution.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99
jobs:
1010
upgrade_wrapper:
1111
name: Execution
12+
if: ${{ github.repository == 'spring-projects/spring-security' }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Set up Git configuration

.github/workflows/update-antora-ui-spring.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ permissions:
1212

1313
jobs:
1414
update-antora-ui-spring:
15-
runs-on: ubuntu-latest
1615
name: Update on Supported Branches
16+
if: ${{ github.repository == 'spring-projects/spring-security' }}
17+
runs-on: ubuntu-latest
1718
strategy:
1819
matrix:
1920
branch: [ '5.8.x', '6.2.x', '6.3.x', 'main' ]
@@ -25,8 +26,9 @@ jobs:
2526
token: ${{ secrets.GITHUB_TOKEN }}
2627
antora-file-path: 'docs/antora-playbook.yml'
2728
update-antora-ui-spring-docs-build:
28-
runs-on: ubuntu-latest
2929
name: Update on docs-build
30+
if: ${{ github.repository == 'spring-projects/spring-security' }}
31+
runs-on: ubuntu-latest
3032
steps:
3133
- uses: spring-io/spring-doc-actions/update-antora-spring-ui@e28269199d1d27975cf7f65e16d6095c555b3cd0
3234
name: Update

0 commit comments

Comments
 (0)