1010 # Allow manually triggering the workflow.
1111 workflow_dispatch :
1212
13+ permissions : {}
14+
1315jobs :
1416 check_cs :
1517 name : " Basic CS and QA checks"
2022
2123 steps :
2224 - name : Setup PHP
23- uses : shivammathur/setup-php@v2
25+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
2426 with :
2527 php-version : " 8.3"
2628 coverage : none
@@ -29,15 +31,17 @@ jobs:
2931 # Show PHP lint violations inline in the file diff.
3032 # @link https://github.com/marketplace/actions/xmllint-problem-matcher
3133 - name : Register PHP lint violations to appear as file diff comments
32- uses : korelstar/phplint-problem-matcher@v1
34+ uses : korelstar/phplint-problem-matcher@cb2b753750ec7bf13a7cde0a476df8c5605bdfb1 # v1.2.0
3335
3436 # Show XML violations inline in the file diff.
3537 # @link https://github.com/marketplace/actions/xmllint-problem-matcher
3638 - name : Register XML violations to appear as file diff comments
37- uses : korelstar/xmllint-problem-matcher@v1
39+ uses : korelstar/xmllint-problem-matcher@1bd292d642ddf3d369d02aaa8b262834d61198c0 # v1.2.0
3840
3941 - name : Checkout code
40- uses : actions/checkout@v4
42+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
43+ with :
44+ persist-credentials : false
4145
4246 # Validate the composer.json file.
4347 # @link https://getcomposer.org/doc/03-cli.md#validate
4751 # Install dependencies and handle caching in one go.
4852 # @link https://github.com/marketplace/actions/install-composer-dependencies
4953 - name : Install Composer dependencies
50- uses : ramsey/composer-install@v3
54+ uses : ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
5155
5256 # Lint PHP.
5357 - name : Lint PHP against parse errors
5660 # Needed as runs-on: system doesn't have xml-lint by default.
5761 # @link https://github.com/marketplace/actions/xml-lint
5862 - name : Lint phpunit.xml.dist
59- uses : ChristophWurst/xmllint-action@v1
63+ uses : ChristophWurst/xmllint-action@7c54ff113fc0f6d4588a15cb4dfe31b6ecca5212 # v1.2.1
6064 with :
6165 xml-file : ./phpunit.xml.dist
6266 xml-schema-file : ./vendor/phpunit/phpunit/phpunit.xsd
0 commit comments