Skip to content

Commit 519d77d

Browse files
committed
ci: Pin more actions, images and permissions
Signed-off-by: Joas Schilling <[email protected]>
1 parent d22a4ca commit 519d77d

33 files changed

+151
-54
lines changed

.github/workflows/block-outdated-3rdparty.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
3333
- name: Checkout
3434
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
with:
36+
persist-credentials: false
3537

3638
- name: 3rdparty commit hash on current branch
3739
id: actual

.github/workflows/command-pull-3rdparty.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
id: comment-branch
3939

4040
- name: Checkout ${{ steps.comment-branch.outputs.head_ref }}
41-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4242
with:
43+
persist-credentials: false
4344
fetch-depth: 0
4445
token: ${{ secrets.COMMAND_BOT_PAT }}
4546
ref: ${{ steps.comment-branch.outputs.head_ref }}

.github/workflows/files-external-ftp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-ftp-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -53,8 +56,9 @@ jobs:
5356

5457
steps:
5558
- name: Checkout server
56-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5760
with:
61+
persist-credentials: false
5862
submodules: true
5963

6064
- name: Set up ftpd

.github/workflows/files-external-s3.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-s3-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -50,7 +53,7 @@ jobs:
5053

5154
services:
5255
minio:
53-
image: bitnami/minio
56+
image: bitnami/minio@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 # v2025.4.22
5457
env:
5558
MINIO_ROOT_USER: nextcloud
5659
MINIO_ROOT_PASSWORD: bWluaW8tc2VjcmV0LWtleS1uZXh0Y2xvdWQ=
@@ -60,8 +63,9 @@ jobs:
6063

6164
steps:
6265
- name: Checkout server
63-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
66+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6467
with:
68+
persist-credentials: false
6569
submodules: true
6670

6771
- name: Set up php ${{ matrix.php-versions }}
@@ -136,14 +140,15 @@ jobs:
136140
env:
137141
SERVICES: s3
138142
DEBUG: 1
139-
image: localstack/localstack
143+
image: localstack/localstack@sha256:b52c16663c70b7234f217cb993a339b46686e30a1a5d9279cb5feeb2202f837c # v4.4.0
140144
ports:
141145
- "4566:4566"
142146

143147
steps:
144148
- name: Checkout server
145-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
149+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
146150
with:
151+
persist-credentials: false
147152
submodules: true
148153

149154
- name: Set up php ${{ matrix.php-versions }}

.github/workflows/files-external-sftp.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-sftp-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -53,8 +56,9 @@ jobs:
5356

5457
steps:
5558
- name: Checkout server
56-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5760
with:
61+
persist-credentials: false
5862
submodules: true
5963

6064
- name: Set up sftpd

.github/workflows/files-external-smb-kerberos.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-smb-kerberos-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -43,13 +46,15 @@ jobs:
4346

4447
steps:
4548
- name: Checkout server
46-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4750
with:
51+
persist-credentials: false
4852
submodules: true
4953

5054
- name: Checkout user_saml
51-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
55+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5256
with:
57+
persist-credentials: false
5358
repository: nextcloud/user_saml
5459
path: apps/user_saml
5560

.github/workflows/files-external-smb.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-smb-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -50,14 +53,15 @@ jobs:
5053

5154
services:
5255
samba:
53-
image: ghcr.io/nextcloud/continuous-integration-samba:latest
56+
image: ghcr.io/nextcloud/continuous-integration-samba:latest # zizmor: ignore[unpinned-images]
5457
ports:
5558
- 445:445
5659

5760
steps:
5861
- name: Checkout server
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
62+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6063
with:
64+
persist-credentials: false
6165
submodules: true
6266

6367
- name: Set up php ${{ matrix.php-versions }}

.github/workflows/files-external-webdav.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-webdav-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -50,14 +53,15 @@ jobs:
5053

5154
services:
5255
apache:
53-
image: ghcr.io/nextcloud/continuous-integration-webdav-apache:latest
56+
image: ghcr.io/nextcloud/continuous-integration-webdav-apache:latest # zizmor: ignore[unpinned-images]
5457
ports:
5558
- 8081:80
5659

5760
steps:
5861
- name: Checkout server
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
62+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6063
with:
64+
persist-credentials: false
6165
submodules: true
6266

6367
- name: Set up php ${{ matrix.php-versions }}

.github/workflows/files-external.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: "5 2 * * *"
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: files-external-generic-${{ github.head_ref || github.run_id }}
1114
cancel-in-progress: true
@@ -49,8 +52,9 @@ jobs:
4952

5053
steps:
5154
- name: Checkout server
52-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
55+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5356
with:
57+
persist-credentials: false
5458
submodules: true
5559

5660
- name: Set up php ${{ matrix.php-versions }}

.github/workflows/integration-dav.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ name: DAV integration tests
44
on:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
concurrency:
811
group: integration-caldav-${{ github.head_ref || github.run_id }}
912
cancel-in-progress: true
@@ -51,8 +54,9 @@ jobs:
5154

5255
steps:
5356
- name: Checkout server
54-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5558
with:
59+
persist-credentials: false
5660
submodules: true
5761

5862
- name: Set up php ${{ matrix.php-versions }}
@@ -67,7 +71,7 @@ jobs:
6771
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6872

6973
- name: Set up Python
70-
uses: LizardByte/setup-python-action@master
74+
uses: LizardByte/setup-python-action@f4367d0377eceec7e5e26da8f3863dd365b95a94 # v2025.426.160528
7175
with:
7276
python-version: '2.7'
7377

0 commit comments

Comments
 (0)