diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2926b737..c3b532ff 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e361bde2..c2607292 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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