Skip to content

Commit b7a8a76

Browse files
committed
Harden GitHub workflows
1 parent 16e5b95 commit b7a8a76

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ on:
2626

2727
jobs:
2828
phpcs:
29-
uses: yiisoft/yii2-actions/.github/workflows/linter.yml@master
29+
uses: yiisoft/yii2-actions/.github/workflows/linter.yml@161a59a5e7d9c5b650c4a132f6e9292bacfcb5cc
3030
with:
3131
extensions: 'amqp'

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ jobs:
3333
php: [ '8.3', '8.4', '8.5' ]
3434
steps:
3535
- name: Checkout.
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
37+
with:
38+
persist-credentials: false
3739

3840
- name: PHP Unit tests for PHP ${{ matrix.php }}
3941
run: make test v=${{ matrix.php }}
4042

4143
- name: Upload coverage to Codecov.
42-
uses: codecov/codecov-action@v5
44+
uses: codecov/codecov-action@04b047e8bb82a0c002c8312c1c880fbc6a999d45
4345
with:
4446
files: ./coverage.xml
4547
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ on:
2626

2727
jobs:
2828
phpstan:
29-
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@master
29+
uses: yiisoft/yii2-actions/.github/workflows/phpstan.yml@161a59a5e7d9c5b650c4a132f6e9292bacfcb5cc
3030
with:
3131
extensions: amqp

0 commit comments

Comments
 (0)