Skip to content

Commit 56f6ff4

Browse files
Fix for code scanning alert no. 1: Workflow does not contain permissions (#7)
* Fix for code scanning alert no. 1: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Add intl PHP extension to CI workflow * Update PHP version to 8.3 in CI workflow * Update PHPStan configuration to use PHP 8.3 * Remove working directory argument from Composer install * Specify working directory for Composer dependencies * Upgrade GitHub Actions checkout to version 6 * Rename checkout step for FOSSBilling source code * Fix step names in PHP CI workflow --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 0202dcb commit 56f6ff4

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/php-ci.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
phpstan:
1114
runs-on: ubuntu-latest
1215

1316
name: PHPStan - FOSSBilling Preview
1417
steps:
15-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v6
1619

17-
- name: Checkout FOSSBilling Source Code
18-
uses: actions/checkout@v3
20+
- name: Checkout FOSSBilling
21+
uses: actions/checkout@v6
1922
with:
2023
repository: "FOSSBilling/FOSSBilling"
2124
path: "FOSSBilling"
@@ -25,11 +28,14 @@ jobs:
2528
with:
2629
args: --working-dir=FOSSBilling
2730
dev: no
31+
php_version: 8.3
32+
php_extensions: intl
2833

2934
- name: Run PHPStan
3035
uses: php-actions/phpstan@v3
3136
with:
32-
php_version: latest
37+
version: latest
38+
php_version: 8.3
3339
configuration: phpstan.neon
3440
memory_limit: 512M
3541

@@ -38,17 +44,17 @@ jobs:
3844

3945
name: PHPStan - FOSSBilling Release
4046
steps:
41-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v6
4248

43-
- name: Get the Latest FOSSBilling Release Tag
49+
- name: Get Latest FOSSBilling Release Tag
4450
uses: oprypin/find-latest-tag@v1
4551
with:
4652
repository: "FOSSBilling/FOSSBilling"
4753
releases-only: true
4854
id: get_id
4955

50-
- name: Checkout The Release tag
51-
uses: actions/checkout@v3
56+
- name: Checkout Release tag
57+
uses: actions/checkout@v6
5258
with:
5359
repository: "FOSSBilling/FOSSBilling"
5460
path: "FOSSBilling"
@@ -57,12 +63,15 @@ jobs:
5763
- name: Install Composer Dependencies
5864
uses: php-actions/composer@v6
5965
with:
60-
args: --working-dir=FOSSBilling/
66+
args: --working-dir=FOSSBilling
6167
dev: no
68+
php_version: 8.3
69+
php_extensions: intl
6270

6371
- name: Run PHPStan
6472
uses: php-actions/phpstan@v3
6573
with:
66-
php_version: latest
74+
version: latest
75+
php_version: 8.3
6776
configuration: phpstan.neon
6877
memory_limit: 512M

0 commit comments

Comments
 (0)