From 14cc2e63bdc81ab36ede6056ac229aef2322e1ea Mon Sep 17 00:00:00 2001 From: Martin Heise Date: Mon, 29 Jul 2024 15:20:24 +0200 Subject: [PATCH] FIx CI permissions --- .github/workflows/ci.yml | 6 +++++- composer.json | 9 ++++++--- tests/Extensions/ImageExtensionTest.php | 3 ++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a799b08..85a5a1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,12 @@ on: pull_request: workflow_dispatch: +permissions: {} + jobs: ci: name: CI uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 - + permissions: + pull-requests: read + contents: write diff --git a/composer.json b/composer.json index 45c1ef2..30a1705 100644 --- a/composer.json +++ b/composer.json @@ -17,16 +17,19 @@ "require": { "php": "^8.0", "ext-dom": "*", - "silverstripe/framework": "^4.0 || ^5.0", + "silverstripe/framework": "^5.0", "mhe/imagetools": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "^3.7" }, "autoload": { "psr-4": { "Mhe\\SmartImages\\": "src/", "Mhe\\SmartImages\\Tests\\": "tests/" } - } + }, + "minimum-stability": "dev", + "prefer-stable": true } diff --git a/tests/Extensions/ImageExtensionTest.php b/tests/Extensions/ImageExtensionTest.php index 5e99e35..23ee389 100644 --- a/tests/Extensions/ImageExtensionTest.php +++ b/tests/Extensions/ImageExtensionTest.php @@ -2,7 +2,8 @@ namespace Mhe\SmartImages\Tests\Extensions; -use DOMDocument, DOMXPath; +use DOMDocument; +use DOMXPath; use Mhe\SmartImages\Extensions\ImageExtension; use Page; use SilverStripe\Assets\Dev\TestAssetStore;