1111 # Allow manually triggering the workflow.
1212 workflow_dispatch :
1313
14+ # Disable all permissions by default. Enable specific permissions per job.
15+ permissions : {}
16+
1417jobs :
1518 checkcs :
1619 name : Lint checks for PHP ${{ matrix.php }}
3235
3336 steps :
3437 - name : Setup PHP ${{ matrix.php }}
35- uses : shivammathur/setup-php@v2
38+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
3639 with :
3740 php-version : ${{ matrix.php }}
3841 coverage : none
@@ -41,20 +44,22 @@ jobs:
4144 # Show PHP lint violations inline in the file diff.
4245 # @link https://github.com/marketplace/actions/xmllint-problem-matcher
4346 - name : Register PHP lint violations to appear as file diff comments
44- uses : korelstar/phplint-problem-matcher@v1
47+ uses : korelstar/phplint-problem-matcher@cb2b753750ec7bf13a7cde0a476df8c5605bdfb1 # v1.2.0
4548
4649 # Show XML violations inline in the file diff.
4750 # @link https://github.com/marketplace/actions/xmllint-problem-matcher
4851 - name : Register XML violations to appear as file diff comments
49- uses : korelstar/xmllint-problem-matcher@v1
52+ uses : korelstar/xmllint-problem-matcher@1bd292d642ddf3d369d02aaa8b262834d61198c0 # v1.2.0
5053
5154 - name : Checkout code
52- uses : actions/checkout@v4
55+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
56+ with :
57+ persist-credentials : false
5358
5459 # Install dependencies and handle caching in one go.
5560 # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
5661 - name : Install Composer dependencies
57- uses : ramsey/composer-install@v2
62+ uses : ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
5863
5964 # Lint PHP.
6065 - name : Lint PHP against parse errors
6469 # @link https://github.com/marketplace/actions/xml-lint
6570 - name : Lint phpunit.xml.dist
6671 if : ${{ matrix.php >= 8.0 }}
67- uses : ChristophWurst/xmllint-action@v1
72+ uses : ChristophWurst/xmllint-action@7c54ff113fc0f6d4588a15cb4dfe31b6ecca5212 # v1.2.1
6873 with :
6974 xml-file : ./phpunit.xml.dist
7075 xml-schema-file : ./vendor/phpunit/phpunit/phpunit.xsd
0 commit comments