Skip to content

Commit cc1d0b2

Browse files
committed
Update GitHub Actions
1 parent 2acd54a commit cc1d0b2

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/static-analysis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "static analysis"
22

33
on: ["pull_request", "push"]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
unit-tests:
710
name: "static analysis"
@@ -10,12 +13,14 @@ jobs:
1013

1114
steps:
1215
- name: "checkout"
13-
uses: "actions/checkout@v4"
16+
uses: "actions/checkout@v5"
17+
with:
18+
persist-credentials: false
1419

1520
- name: "installing PHP"
1621
uses: "shivammathur/setup-php@v2"
1722
with:
18-
php-version: "8.3"
23+
php-version: "8.4"
1924
ini-values: memory_limit=-1
2025
tools: composer:v2, phpstan, cs2pr
2126

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "unit tests"
22

33
on: ["pull_request", "push"]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
unit-tests:
710
name: "unit tests"
@@ -27,7 +30,9 @@ jobs:
2730

2831
steps:
2932
- name: "checkout"
30-
uses: "actions/checkout@v4"
33+
uses: "actions/checkout@v5"
34+
with:
35+
persist-credentials: false
3136

3237
- name: "installing PHP"
3338
uses: "shivammathur/setup-php@v2"
@@ -37,7 +42,7 @@ jobs:
3742
tools: composer:v2, cs2pr
3843

3944
- name: "caching dependencies"
40-
uses: "actions/cache@v3"
45+
uses: "actions/cache@v4"
4146
with:
4247
path: |
4348
~/.composer/cache

0 commit comments

Comments
 (0)