3838See [ action.yml] ( action.yml ) and the underlying script [ ` typisttech/php-matrix ` ] ( https://github.com/typisttech/php-matrix/#options ) .
3939
4040``` yaml
41- - uses : typisttech/php-matrix-action@v2
41+ - uses : typisttech/php-matrix-action@ee26ae37ffb37246b9a3912b71d95b661ad341b8 # v2.0.8
4242 with :
4343 # Path to composer.json
4444 #
4545 # Default: composer.json
4646 composer-json : some/path/to/composer.json
47-
47+
4848 # Version format.
4949 #
5050 # Available modes:
@@ -68,9 +68,9 @@ See [action.yml](action.yml) and the underlying script [`typisttech/php-matrix`]
6868 source : offline
6969
7070 # PHP Matrix version.
71- #
71+ #
7272 # The version of [php-matrix] to use. Leave blank for latest. For example: v1.0.2
73- #
73+ #
7474 # [php-matrix]: https://github.com/typisttech/php-matrix
7575 #
7676 # Default: ''
@@ -124,12 +124,13 @@ jobs:
124124 outputs:
125125 versions: ${{ steps.php-matrix.outputs.versions }}
126126 steps:
127- - uses: actions/checkout@v5
127+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
128128 with:
129129 sparse-checkout: composer.json
130130 sparse-checkout-cone-mode: false
131+ persist-credentials: false
131132
132- - uses: typisttech/php-matrix-action@v2
133+ - uses: typisttech/php-matrix-action@ee26ae37ffb37246b9a3912b71d95b661ad341b8 # v2.0.8
133134 id: php-matrix
134135
135136 test:
@@ -139,8 +140,10 @@ jobs:
139140 matrix:
140141 php-version: ${{ fromJSON(needs.php-matrix.outputs.versions) }}
141142 steps:
142- - uses: actions/checkout@v5
143- - uses: shivammathur/setup-php@v2
143+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
144+ with:
145+ persist-credentials: false
146+ - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # master
144147 with:
145148 php-version: ${{ matrix.php-version }}
146149 - run: composer install
@@ -161,12 +164,13 @@ jobs:
161164 test:
162165 runs-on: ubuntu-latest
163166 steps:
164- - uses: actions/checkout@v5
165-
166- - uses: typisttech/php-matrix-action@v2
167+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
168+ with:
169+ persist-credentials: false
170+ - uses: typisttech/php-matrix-action@ee26ae37ffb37246b9a3912b71d95b661ad341b8 # v2.0.8
167171 id: php-matrix
168172
169- - uses: shivammathur/setup-php@v2
173+ - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # master
170174 with:
171175 php-version: ${{ steps.php-matrix.outputs.highest }}
172176
@@ -192,12 +196,13 @@ jobs:
192196 highest: ${{ steps.php-matrix.outputs.highest }}
193197 lowest: ${{ steps.php-matrix.outputs.lowest }}
194198 steps:
195- - uses: actions/checkout@v5
199+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
196200 with:
197201 sparse-checkout: composer.json
198202 sparse-checkout-cone-mode: false
203+ persist-credentials: false
199204
200- - uses: typisttech/php-matrix-action@v2
205+ - uses: typisttech/php-matrix-action@ee26ae37ffb37246b9a3912b71d95b661ad341b8 # v2.0.8
201206 id: php-matrix
202207
203208 composer-audit:
@@ -215,18 +220,19 @@ jobs:
215220 env:
216221 COMPOSER_NO_AUDIT: 1
217222 steps:
218- - uses: actions/checkout@v5
223+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
219224 with:
220225 sparse-checkout: |
221226 composer.json
222227 composer.lock
223228 sparse-checkout-cone-mode: false
229+ persist-credentials: false
224230
225- - uses: shivammathur/setup-php@v2
231+ - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # master
226232 with:
227233 php-version: ${{ matrix.php-version }}
228234 coverage: none
229- - uses: ramsey/composer-install@v3
235+ - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
230236 with:
231237 dependency-versions: ${{ matrix.dependency-versions }}
232238
0 commit comments