Skip to content

Commit 6948aeb

Browse files
author
Administrator
committed
[chore] CI
1.調整 Github Action 依賴指定方式
1 parent 9f4e0db commit 6948aeb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
1818

1919
- name: Set up PHP
20-
uses: shivammathur/setup-php@v2
20+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f
2121
with:
2222
php-version: ${{ matrix.php }}
2323
coverage: xdebug
@@ -29,7 +29,7 @@ jobs:
2929
run: vendor/bin/phpunit --configuration phpunit.xml --coverage-clover coverage.xml --coverage-text
3030

3131
- name: Upload coverage to Codecov
32-
uses: codecov/codecov-action@v4
32+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
3333
with:
3434
token: ${{ secrets.CODECOV_TOKEN }}
3535
files: coverage.xml
@@ -39,20 +39,20 @@ jobs:
3939
FOSSA:
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
4343
- name: Run FOSSA scan
44-
uses: fossas/fossa-action@v1
44+
uses: fossas/fossa-action@47ef11b1e1e3812e88dae436ccbd2d0cbd1adab0
4545
with:
4646
api-key: ${{ secrets.FOSSA_TOKEN }}
4747

4848
SONAR:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Checkout repository
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
5353

5454
- name: Set up PHP
55-
uses: shivammathur/setup-php@v2
55+
uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f
5656
with:
5757
php-version: '8.1'
5858
coverage: xdebug
@@ -61,7 +61,7 @@ jobs:
6161
run: composer install --no-interaction --prefer-dist --no-progress
6262

6363
- name: SonarCloud Scan
64-
uses: SonarSource/sonarcloud-github-action@v2
64+
uses: SonarSource/sonarcloud-github-action@e44258b109568baa0df60ed515909fc6c72cba92
6565
with:
6666
projectBaseDir: .
6767
args: >

0 commit comments

Comments
 (0)