Merge pull request #982 from jrfnl/feature/ghactions-dont-run-cronjobs-on-forks

GH Actions: don't run cron jobs on forks
This commit is contained in:
Shivam Mathur
2025-08-04 20:07:42 +05:30
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ permissions:
jobs:
codeql:
if: github.event.repository.fork == false
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code

View File

@ -8,6 +8,7 @@ permissions:
jobs:
create:
if: github.event.repository.fork == false
permissions:
contents: none
name: Create
@ -92,6 +93,7 @@ jobs:
name: lists-php${{ matrix.php-versions }}-${{ matrix.operating-system }}.md
path: php${{ matrix.php-versions }}-${{ matrix.operating-system }}.md
update:
if: github.event.repository.fork == false
permissions:
contents: write # for Git to git push
name: Update