Skip to content

Commit 963e756

Browse files
committed
ci(actions): Update workflows
Signed-off-by: Joas Schilling <[email protected]>
1 parent fc40e14 commit 963e756

File tree

6 files changed

+40
-21
lines changed

6 files changed

+40
-21
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,24 @@ jobs:
2525

2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
29+
with:
30+
persist-credentials: false
2931

30-
- name: Set up php8.2
31-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
32+
- name: Set up php8.3
33+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
3234
with:
33-
php-version: 8.2
35+
php-version: 8.3
3436
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
3537
coverage: none
3638
ini-file: development
3739
env:
3840
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941

4042
- name: Install dependencies
41-
run: composer i
43+
run: |
44+
composer remove nextcloud/ocp --dev --no-scripts
45+
composer i
4246
4347
- name: Lint
4448
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )

.github/workflows/lint-php.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
php-versions: [ '8.1' ]
25+
php-versions: ['8.1', ''8.2', '8.3', '8.4', '8.5']
2626

2727
name: php-lint
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
31+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
32+
with:
33+
persist-credentials: false
3234

3335
- name: Set up php ${{ matrix.php-versions }}
34-
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
36+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
3537
with:
3638
php-version: ${{ matrix.php-versions }}
3739
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite

.github/workflows/pr-feedback.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +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:
24+
if: ${{ github.repository_owner == 'nextcloud' }}
2025
runs-on: ubuntu-latest
2126
steps:
2227
- name: The get-github-handles-from-website action
23-
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
2429
id: scrape
2530
with:
2631
website: 'https://nextcloud.com/team/'
@@ -31,7 +36,7 @@ jobs:
3136
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
3237
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
3338
34-
- uses: marcelklehr/pr-feedback-action@1883b38a033fb16f576875e0cf45f98b857655c4
39+
- uses: nextcloud/pr-feedback-action@f0cab224dea8e1f282f9451de322f323c78fc7a5 # main
3540
with:
3641
feedback-message: |
3742
Hello there,
@@ -45,6 +50,6 @@ jobs:
4550
4651
(If you believe you should not receive this message, you can add yourself to the [blocklist](https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt).)
4752
days-before-feedback: 14
48-
start-date: '2024-04-30'
53+
start-date: '2025-06-12'
4954
exempt-authors: '${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }}'
5055
exempt-bots: true

.github/workflows/reuse.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ name: REUSE Compliance Check
1111

1212
on: [pull_request]
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
reuse-compliance-check:
16-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-latest-low
1720
steps:
1821
- name: Checkout
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2023
with:
2124
persist-credentials: false
2225

2326
- name: REUSE Compliance Check
24-
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
27+
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0

.github/workflows/test-repositories.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
php-versions: [ "8.1" ]
32+
php-versions: [ "8.3" ]
3333
repositories:
3434
- "nextcloud/app_template"
3535
- "nextcloud/approve_links"
@@ -50,10 +50,12 @@ jobs:
5050

5151
steps:
5252
- name: Checkout
53-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
53+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
54+
with:
55+
persist-credentials: false
5456

5557
- name: Set up php ${{ matrix.php-versions }}
56-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
58+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
5759
with:
5860
php-version: ${{ matrix.php-versions }}
5961
coverage: none
@@ -62,8 +64,9 @@ jobs:
6264
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6365

6466
- name: Checkout repository for testing
65-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
67+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
6668
with:
69+
persist-credentials: false
6770
repository: ${{ matrix.repositories }}
6871
path: temp-repository
6972

@@ -107,7 +110,7 @@ jobs:
107110
summary:
108111
permissions:
109112
contents: none
110-
runs-on: ubuntu-latest
113+
runs-on: ubuntu-latest-low
111114
needs: openapi-repositories
112115

113116
if: always()

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
37+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
38+
with:
39+
persist-credentials: false
3840

3941
- name: Set up php ${{ matrix.php-versions }}
40-
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
42+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
4143
with:
4244
php-version: ${{ matrix.php-versions }}
4345
coverage: none

0 commit comments

Comments
 (0)