Skip to content

Commit

Permalink
FIx CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheise committed Jul 29, 2024
1 parent 7a827fa commit 14cc2e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
3 changes: 2 additions & 1 deletion tests/Extensions/ImageExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14cc2e6

Please sign in to comment.