diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..d9b9c15 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,30 @@ +version: 2 +updates: +- package-ecosystem: github-actions + commit-message: + prefix: chore + include: scope + directory: / + schedule: + interval: monthly + groups: + github-actions: + patterns: + - "*" + update-types: + - "minor" + - "patch" +- package-ecosystem: composer + commit-message: + prefix: chore + include: scope + directory: / + schedule: + interval: monthly + groups: + composer: + patterns: + - "*" + update-types: + - "minor" + - "patch" diff --git a/.github/dependency-review-config.yaml b/.github/dependency-review-config.yaml new file mode 100644 index 0000000..0bd0c7a --- /dev/null +++ b/.github/dependency-review-config.yaml @@ -0,0 +1,24 @@ +# https://github.com/cncf/foundation/blob/main/policies-guidance/allowed-third-party-license-policy.md +allow-licenses: +# default allowed +- 'Apache-2.0' +# explicit CNCF allowlist +- '0BSD' +- 'BSD-2-Clause' +- 'BSD-2-Clause-FreeBSD' +- 'BSD-3-Clause' +- 'ISC' +- 'MIT' +- 'MIT-0' +- 'OpenSSL' +- 'OpenSSL-standalone' +- 'PSF-2.0' +- 'PostgreSQL' +- 'Python-2.0' +- 'Python-2.0.1' +- 'SSLeay-standalone' +- 'UPL-1.0' +- 'X11' +- 'Zlib' +# Google's patent licence for Go +- 'LicenseRef-scancode-google-patent-license-golang' diff --git a/app/Models/PolydockAppInstance.php b/app/Models/PolydockAppInstance.php index 27039b0..2d2a01a 100644 --- a/app/Models/PolydockAppInstance.php +++ b/app/Models/PolydockAppInstance.php @@ -349,7 +349,7 @@ protected static function boot() }); static::updated(function ($appInstance) { - if ($appInstance->isDirty('status')) { + if ($appInstance->wasChanged('status')) { $appInstance->info('MODEL: Status changed for app instance', [ 'app_instance_id' => $appInstance->id, 'previous_status' => $appInstance->getOriginal('status'),