Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 14 additions & 21 deletions .github/workflows/bc.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
name: backwards compatibility

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'
paths: &paths
- '.github/workflows/bc.yml'
- '.roave-backward-compatibility-check.xml'
- 'config/**'
- 'src/**'
- 'composer.json'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

name: backwards compatibility
paths: *paths

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
roave_bc_check:
uses: yiisoft/actions/.github/workflows/bc.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1']
['8.5']
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
name: build

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

paths: &paths
- '.github/workflows/build.yml'
- 'config/**'
- 'src/**'
- 'tests/**'
- 'composer.json'
- 'phpunit.xml.dist'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'

name: build
paths: *paths

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
phpunit:
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
os: >-
['ubuntu-latest', 'windows-latest']
Expand Down
35 changes: 14 additions & 21 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,25 @@
name: Composer require checker

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

paths: &paths
- '.github/workflows/composer-require-checker.yml'
- 'config/**'
- 'src/**'
- 'tests/**'
- 'composer.json'
- 'composer-require-checker.json'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'
- 'psalm.xml'

name: Composer require checker
paths: *paths

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
composer-require-checker:
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
name: mutation test

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'

paths: &paths
- '.github/workflows/mutation.yml'
- 'config/**'
- 'src/**'
- 'tests/**'
- 'composer.json'
- 'infection.json.dist'
- 'phpunit.xml.dist'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'psalm.xml'

name: mutation test
paths: *paths

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
mutation:
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rector-cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ concurrency:

jobs:
rector:
permissions:
contents: write # Required to push changes from Rector and PHP CS Fixer
uses: yiisoft/actions/.github/workflows/rector-cs.yml@master
with:
php: '8.1'
34 changes: 14 additions & 20 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,29 @@
name: static analysis

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'

paths: &paths
- '.github/workflows/static.yml'
- 'config/**'
- 'src/**'
- 'composer.json'
- 'psalm.xml'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'phpunit.xml.dist'

name: static analysis
paths: *paths

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3', '8.4']
['8.1', '8.2', '8.3', '8.4', '8.5']
20 changes: 10 additions & 10 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: GitHub Actions Security Analysis with zizmor 🌈

on:
push:
branches:
- master
- main
paths:
- '.github/**.yml'
- '.github/**.yaml'
pull_request:
paths:
paths: &paths
- '.github/**.yml'
- '.github/**.yaml'
push:
branches: ['master']
paths: *paths

permissions:
actions: read # Required by zizmor when reading workflow metadata through the API.
contents: read # Required to read workflow files.
actions: read # Required by zizmor when reading workflow metadata through the API
contents: read # Required to read workflow files

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
zizmor:
Expand Down
6 changes: 6 additions & 0 deletions .roave-backward-compatibility-check.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<roave-bc-check xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/roave/backward-compatibility-check/Resources/schema.xsd">
<baseline>
<ignored-regex>#\[BC\] SKIPPED: Roave\\BetterReflection\\Reflection\\ReflectionClass "Yiisoft\\Yii\\Debug#</ignored-regex>
</baseline>
</roave-bc-check>
2 changes: 1 addition & 1 deletion src/Method/HttpBasic.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
*
* If not set, the username information will be considered as an access token
* while the password information will be ignored.
* The {@see \Yiisoft\Auth\IdentityWithTokenRepositoryInterface::findIdentityByToken()}
* The {@see IdentityWithTokenRepositoryInterface::findIdentityByToken()}
* method will be called to authenticate an identity.
*/
public function withAuthenticationCallback(callable $authenticationCallback): self
Expand Down Expand Up @@ -162,7 +162,7 @@
{
return array_map(
static fn($value) => $value === '' ? null : $value,
explode(':', base64_decode(substr($authToken, 6)), 2),

Check warning on line 165 in src/Method/HttpBasic.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.3-ubuntu-latest

Escaped Mutant for Mutator "DecrementInteger": @@ @@ { return array_map( static fn($value) => $value === '' ? null : $value, - explode(':', base64_decode(substr($authToken, 6)), 2), + explode(':', base64_decode(substr($authToken, 5)), 2), ); }
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Method/HttpHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* HttpHeader supports HTTP authentication through HTTP Headers.
*
* The default implementation of HttpHeader uses the
* {@see \Yiisoft\Auth\IdentityWithTokenRepositoryInterface::findIdentityByToken()}
* {@see IdentityWithTokenRepositoryInterface::findIdentityByToken()}
* and passes the value of the `X-Api-Key` header. This implementation is used mainly for authenticating API clients.
*/
class HttpHeader implements AuthenticationMethodInterface
Expand Down
Loading