Skip to content

A free open source IT asset/license management system

Test failure fixes from 'Key Files Permissions Validation' from https://github.com/laravel/passport/blob/13.x/UPGRADE.md#key-files-permissions-validation

Joël Pittetb8958bad727c
diff --git a/.github/workflows/tests-mysql.yml b/.github/workflows/tests-mysql.yml
index 4869b4600f..4f71c0d591 100644
--- a/.github/workflows/tests-mysql.yml
+++ b/.github/workflows/tests-mysql.yml
@@ -69,6 +69,8 @@ jobs:
php artisan migrate --force
php artisan passport:install --no-interaction
chmod -R 777 storage bootstrap/cache
+ chmod 600 storage/oauth-private.key
+ chmod 660 storage/oauth-public.key
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
diff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.yml
index 0b632d2946..7f9d7040e1 100644
--- a/.github/workflows/tests-postgres.yml
+++ b/.github/workflows/tests-postgres.yml
@@ -67,6 +67,8 @@ jobs:
php artisan migrate --force
php artisan passport:install --no-interaction
chmod -R 777 storage bootstrap/cache
+ chmod 600 storage/oauth-private.key
+ chmod 660 storage/oauth-public.key
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml
index 865b0da65f..1347f7818c 100644
--- a/.github/workflows/tests-sqlite.yml
+++ b/.github/workflows/tests-sqlite.yml
@@ -56,7 +56,10 @@ jobs:
run: php artisan passport:keys
- name: Directory Permissions
- run: chmod -R 777 storage bootstrap/cache
+ run: |
+ chmod -R 777 storage bootstrap/cache
+ chmod 600 storage/oauth-private.key
+ chmod 660 storage/oauth-public.key
- name: Execute tests (Unit and Feature tests) via PHPUnit
env: