diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4798b2c..6274236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: ci: name: CI # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 with: extra_jobs: | diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ebf9716..4cf5fbb 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -10,7 +10,7 @@ jobs: keepalive: name: Keepalive # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - name: Keepalive diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 4625fbf..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,15 +0,0 @@ -inherit: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -checks: - php: - code_rating: true - duplication: true - -filter: - paths: [code/*, tests/*] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1889ed5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range.yml - -jobs: - include: - - php: 7.4 - env: - - DB=MYSQL - - REQUIRE_RECIPE=4.10.x-dev - - REQUIRE_MFA=^4 - - PHPUNIT_TEST=1 - - php: 7.4 - env: - - DB=MYSQL - - REQUIRE_RECIPE=4.10.x-dev - - REQUIRE_SESSION_MANAGER=^1 - - PHPUNIT_TEST=1 - -before_script: - - if [[ $REQUIRE_MFA ]]; then composer require --no-update silverstripe/mfa:"$REQUIRE_MFA"; fi - - if [[ $REQUIRE_SESSION_MANAGER ]]; then composer require --no-update silverstripe/session-manager:"$REQUIRE_SESSION_MANAGER"; fi diff --git a/readme.md b/README.md similarity index 83% rename from readme.md rename to README.md index 0f50182..5ed5c8a 100644 --- a/readme.md +++ b/README.md @@ -1,9 +1,7 @@ -# SilverStripe Auditor +# Silverstripe Auditor [![CI](https://github.com/silverstripe/silverstripe-auditor/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-auditor/actions/workflows/ci.yml) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-auditor/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-auditor/?branch=master) -[![codecov](https://codecov.io/gh/silverstripe/silverstripe-auditor/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-auditor) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) Auditor module installs a series of extension hooks into the Framework to monitor activity of authenticated users. Audit trail is written into `LOG_AUTH` syslog facility through [Monolog](https://github.com/Seldaek/monolog/), and includes: @@ -15,7 +13,7 @@ trail is written into `LOG_AUTH` syslog facility through [Monolog](https://githu ## Requirements -* SilverStripe ^4.0 +* Silverstripe ^4.0 * Monolog ~1.11 ## Installation @@ -24,7 +22,7 @@ trail is written into `LOG_AUTH` syslog facility through [Monolog](https://githu composer require silverstripe/auditor ^2.0 ``` -**Please note:** For a SilverStripe 3 compatible, please see [the 1.x release line](https://github.com/silverstripe/silverstripe-auditor/tree/1). +**Please note:** For a Silverstripe 3 compatible, please see [the 1.x release line](https://github.com/silverstripe/silverstripe-auditor/tree/1). ## Custom audit trail diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 39cfb6a..30a6833 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +