From 48d6000468bb05a0427d98bed27f6cf5644e2df7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 3 Jan 2023 13:33:49 +0100 Subject: [PATCH] chore(CI): Improve rate limit situation when installing phpunit Signed-off-by: Joas Schilling --- .github/workflows/ftp.yml | 2 ++ .github/workflows/lint-php-cs.yml | 2 ++ .github/workflows/lint-php.yml | 2 ++ .github/workflows/oci.yml | 2 ++ .github/workflows/performance.yml | 2 ++ .github/workflows/psalm-github.yml | 2 ++ .github/workflows/s3-external.yml | 4 ++++ .github/workflows/s3-primary.yml | 2 ++ .github/workflows/static-code-analysis.yml | 4 ++++ .github/workflows/update-psalm-baseline.yml | 2 ++ 10 files changed, 24 insertions(+) diff --git a/.github/workflows/ftp.yml b/.github/workflows/ftp.yml index d3b0af3cb80..8d17453b833 100644 --- a/.github/workflows/ftp.yml +++ b/.github/workflows/ftp.yml @@ -45,6 +45,8 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml index b24ad95dac8..21133ab68b4 100644 --- a/.github/workflows/lint-php-cs.yml +++ b/.github/workflows/lint-php-cs.yml @@ -29,6 +29,8 @@ jobs: with: php-version: "8.0" coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Install dependencies run: composer i diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index fc0e268f973..5a7cbffb099 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -38,6 +38,8 @@ jobs: with: php-version: ${{ matrix.php-versions }} coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Lint run: composer run lint diff --git a/.github/workflows/oci.yml b/.github/workflows/oci.yml index f7537d642d8..bdf6da52bed 100644 --- a/.github/workflows/oci.yml +++ b/.github/workflows/oci.yml @@ -36,6 +36,8 @@ jobs: extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, oci8, openssl, pdo_sqlite, posix, sqlite, xml, zip tools: phpunit:9 coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index b05390772cf..4352db26045 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -26,6 +26,8 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | diff --git a/.github/workflows/psalm-github.yml b/.github/workflows/psalm-github.yml index 0a355d122b7..e86e4cb07e9 100644 --- a/.github/workflows/psalm-github.yml +++ b/.github/workflows/psalm-github.yml @@ -23,6 +23,8 @@ jobs: php-version: '8.0' extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Composer install run: composer i diff --git a/.github/workflows/s3-external.yml b/.github/workflows/s3-external.yml index 45b585c5295..a5060f3e573 100644 --- a/.github/workflows/s3-external.yml +++ b/.github/workflows/s3-external.yml @@ -46,6 +46,8 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | @@ -95,6 +97,8 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | diff --git a/.github/workflows/s3-primary.yml b/.github/workflows/s3-primary.yml index 50bab8965f5..7b6276b39f5 100644 --- a/.github/workflows/s3-primary.yml +++ b/.github/workflows/s3-primary.yml @@ -40,6 +40,8 @@ jobs: php-version: ${{ matrix.php-versions }} tools: phpunit extensions: mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Nextcloud run: | diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 8a83b7d02ba..1d2e2607582 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -19,6 +19,8 @@ jobs: php-version: '8.0' extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Composer install run: composer i @@ -48,6 +50,8 @@ jobs: php-version: '8.0' extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Composer install run: composer i diff --git a/.github/workflows/update-psalm-baseline.yml b/.github/workflows/update-psalm-baseline.yml index fd73d555c86..9a96ecc2e72 100644 --- a/.github/workflows/update-psalm-baseline.yml +++ b/.github/workflows/update-psalm-baseline.yml @@ -28,6 +28,8 @@ jobs: php-version: '8.0' extensions: ctype,curl,dom,fileinfo,gd,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip coverage: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Composer install run: composer install -- 2.39.5