Skip to content

Commit 947311c

Browse files
authored
Merge pull request #621 from nextcloud/fix/update-ci-workflows
chore: Update workflows from templates, with few adaptations
2 parents 84b37d1 + acb99a0 commit 947311c

5 files changed

Lines changed: 34 additions & 11 deletions

File tree

.github/workflows/lint-php-cs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ jobs:
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
with:
30+
persist-credentials: false
2931

3032
- name: Set up php8.2
31-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
33+
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
3234
with:
3335
php-version: 8.2
36+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3437
coverage: none
3538
ini-file: development
3639
env:

.github/workflows/lint-php.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32+
with:
33+
persist-credentials: false
3234

3335
- name: Set up php ${{ matrix.php-versions }}
34-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
36+
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
3537
with:
3638
php-version: ${{ matrix.php-versions }}
39+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3740
coverage: none
3841
ini-file: development
3942
env:
@@ -45,7 +48,7 @@ jobs:
4548
summary:
4649
permissions:
4750
contents: none
48-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-latest-low
4952
needs: php-lint
5053

5154
if: always()

.github/workflows/pr-feedback.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ on:
1515
schedule:
1616
- cron: '30 1 * * *'
1717

18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
1822
jobs:
1923
pr-feedback:
2024
if: ${{ github.repository_owner == 'nextcloud' }}
2125
runs-on: ubuntu-latest
2226
steps:
2327
- name: The get-github-handles-from-website action
24-
uses: marcelklehr/get-github-handles-from-website-action@a739600f6b91da4957f51db0792697afbb2f143c # v1.0.0
28+
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
2529
id: scrape
2630
with:
2731
website: 'https://nextcloud.com/team/'
@@ -32,7 +36,7 @@ jobs:
3236
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
3337
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
3438
35-
- uses: marcelklehr/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4
39+
- uses: nextcloud/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4 # main
3640
with:
3741
feedback-message: |
3842
Hello there,

.github/workflows/psalm.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,34 @@ concurrency:
1414
group: psalm-${{ github.head_ref || github.run_id }}
1515
cancel-in-progress: true
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
static-analysis:
1922
runs-on: ubuntu-latest
2023

2124
name: static-psalm-analysis
2225
steps:
2326
- name: Checkout
24-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
with:
29+
persist-credentials: false
2530

2631
- name: Set up php8.2
27-
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2
32+
uses: shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a # v2.33.0
2833
with:
2934
php-version: 8.2
35+
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3036
coverage: none
3137
ini-file: development
38+
# Temporary workaround for missing pcntl_* in PHP 8.3
39+
ini-values: disable_functions=
3240
env:
3341
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3442

3543
- name: Install dependencies
3644
run: composer i
3745

3846
- name: Run coding standards check
39-
run: composer run psalm
47+
run: composer run psalm -- --threads=1 --monochrome --no-progress --output-format=github

.github/workflows/reuse.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ name: REUSE Compliance Check
1111

1212
on: [pull_request]
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
reuse-compliance-check:
1619
runs-on: ubuntu-latest
1720
steps:
1821
- name: Checkout
1922
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
2025

2126
- name: REUSE Compliance Check
22-
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
27+
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0

0 commit comments

Comments
 (0)