diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5da84fb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' + - package-ecosystem: 'composer' + directory: '/' + schedule: + interval: 'weekly' diff --git a/.github/workflows/runtime-testing.yaml b/.github/workflows/runtime-testing.yaml index c8a10e2..297bdc5 100644 --- a/.github/workflows/runtime-testing.yaml +++ b/.github/workflows/runtime-testing.yaml @@ -10,6 +10,9 @@ on: - '5.x' - '6.x' +permissions: + contents: 'read' + jobs: syntax-linting: @@ -29,8 +32,8 @@ jobs: - '8.5' - '8.6' steps: - - uses: 'actions/checkout@v6' - - uses: 'shivammathur/setup-php@v2' + - uses: 'actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803' # v6.1.0 + - uses: 'shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962' # 2.40.0 with: php-version: '${{ matrix.php }}' - run: 'find src/ -type f -name "*.php" -print0 | xargs -0 -n1 -P4 php -d"error_reporting=E_ALL&~E_DEPRECATED" -l -n | (! grep -v "No syntax errors detected" )' @@ -52,11 +55,11 @@ jobs: - '8.5' - '8.6' steps: - - uses: 'actions/checkout@v6' - - uses: 'shivammathur/setup-php@v2' + - uses: 'actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803' # v6.1.0 + - uses: 'shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962' # 2.40.0 with: php-version: '${{ matrix.php }}' - - uses: 'ramsey/composer-install@v4' + - uses: 'ramsey/composer-install@26d8a556604053a9612623447203a691f406fbe6' # v4 with: dependency-versions: 'highest' - run: './vendor/bin/phpunit --bootstrap="tests/bootstrap.php" --test-suffix="Test.php" tests' diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 0cba4c6..a307232 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -10,6 +10,9 @@ on: - '5.x' - '6.x' +permissions: + contents: 'read' + jobs: phpstan: @@ -20,11 +23,11 @@ jobs: - '7.4' - '8.6' steps: - - uses: 'actions/checkout@v6' - - uses: 'shivammathur/setup-php@v2' + - uses: 'actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803' # v6.1.0 + - uses: 'shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962' # 2.40.0 with: php-version: '${{ matrix.php }}' - - uses: 'ramsey/composer-install@v4' + - uses: 'ramsey/composer-install@26d8a556604053a9612623447203a691f406fbe6' # v4 with: dependency-versions: 'highest' # Require PHPStan via command-line instead of adding to Composer's @@ -41,11 +44,11 @@ jobs: - '7.4' - '8.6' steps: - - uses: 'actions/checkout@v6' - - uses: 'shivammathur/setup-php@v2' + - uses: 'actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803' # v6.1.0 + - uses: 'shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962' # 2.40.0 with: php-version: '${{ matrix.php }}' - - uses: 'ramsey/composer-install@v4' + - uses: 'ramsey/composer-install@26d8a556604053a9612623447203a691f406fbe6' # v4 with: dependency-versions: 'highest' # Require PHP-CS-Fixer via command-line instead of adding to Composer's