@@ -5,6 +5,9 @@ name: Cypress
55
66on : pull_request
77
8+ permissions :
9+ contents : read
10+
811concurrency :
912 group : cypress-${{ github.head_ref || github.run_id }}
1013 cancel-in-progress : ${{ !github.head_ref }}
@@ -27,33 +30,37 @@ jobs:
2730
2831 steps :
2932 - name : Checkout server
30- uses : actions/checkout@v4.1.1
33+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3134 with :
35+ persist-credentials : false
3236 repository : nextcloud/server
3337 ref : ${{ matrix.server-versions }}
3438 submodules : true
3539
3640 - name : Checkout viewer
37- uses : actions/checkout@v4.1.1
41+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3842 with :
43+ persist-credentials : false
3944 repository : nextcloud/viewer
4045 ref : ${{ matrix.server-versions }}
4146 path : apps/viewer
4247
4348 - name : Checkout assistant
44- uses : actions/checkout@v4.1.1
49+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4550 with :
51+ persist-credentials : false
4652 repository : nextcloud/assistant
4753 ref : main
4854 path : apps/assistant
4955
5056 - name : Checkout app
51- uses : actions/checkout@v4.1.1
57+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
5258 with :
59+ persist-credentials : false
5360 path : apps/${{ env.APP_NAME }}
5461
5562 - name : Read package.json node and npm engines version
56- uses : skjnldsv/read-package-engines-version-actions@v3
63+ uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
5764 id : versions
5865 with :
5966 fallbackNode : " ^20"
6774 node-version : ${{ steps.versions.outputs.nodeVersion }}
6875
6976 - name : Set up npm ${{ steps.versions.outputs.npmVersion }}
70- run : npm i -g npm@" ${{ steps.versions.outputs.npmVersion }}"
77+ run : npm i -g ' npm@${{ steps.versions.outputs.npmVersion }}'
7178
7279 - name : Install node dependencies & build app
7380 working-directory : apps/${{ env.APP_NAME }}
8390 npm run build
8491
8592 - name : Save context
86- uses : buildjet/cache/save@v4.0.2
93+ uses : buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
8794 with :
8895 key : cypress-context-${{ github.run_id }}
8996 path : |
@@ -104,7 +111,7 @@ jobs:
104111
105112 services :
106113 postgres :
107- image : ghcr.io/nextcloud/continuous-integration-postgres-14 :latest
114+ image : ghcr.io/nextcloud/continuous-integration-postgres-16 :latest # zizmor: ignore[unpinned-images]
108115 ports :
109116 - 4444:5432/tcp
110117 env :
@@ -115,24 +122,24 @@ jobs:
115122
116123 steps :
117124 - name : Restore context
118- uses : buildjet/cache/restore@v4.0.2
125+ uses : buildjet/cache/restore@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
119126 with :
120127 fail-on-cache-miss : true
121128 key : cypress-context-${{ github.run_id }}
122129 path : |
123130 ./
124131
125132 - name : Set up node ${{ needs.init.outputs.nodeVersion }}
126- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 .0.2
133+ uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 .0.0
127134 with :
128135 cache : ' npm'
129136 node-version : ${{ needs.init.outputs.nodeVersion }}
130137
131138 - name : Set up npm ${{ needs.init.outputs.npmVersion }}
132- run : npm i -g npm@" ${{ needs.init.outputs.npmVersion }}"
139+ run : npm i -g ' npm@${{ needs.init.outputs.npmVersion }}'
133140
134141 - name : Set up php ${{ matrix.php-versions }}
135- uses : shivammathur/setup-php@8872c784b04a1420e81191df5d64fbd59d3d3033 # 2.30.2
142+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
136143 with :
137144 php-version : ${{ matrix.php-versions }}
138145 extensions : bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
@@ -179,7 +186,7 @@ jobs:
179186
180187
181188 - name : Upload snapshots
182- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
189+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
183190 if : failure()
184191 with :
185192 name : snapshots_${{ matrix.containers }}
@@ -189,7 +196,7 @@ jobs:
189196 retention-days : 5
190197
191198 - name : Upload NC logs
192- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
199+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
193200 if : failure()
194201 with :
195202 name : nc_logs_${{ matrix.containers }}.log
0 commit comments