3737
3838 services :
3939 mysql :
40- image : ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
40+ image : ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest # zizmor: ignore[unpinned-images]
4141 ports :
4242 - 4444:3306/tcp
4343 env :
@@ -47,21 +47,17 @@ jobs:
4747 steps :
4848
4949 - name : Checkout server
50- uses : actions/checkout@v4
50+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151 with :
52+ persist-credentials : false
53+ submodules : true
5254 repository : nextcloud/server
5355 ref : ${{ matrix.server-versions }}
5456
55- - name : Checkout submodules
56- shell : bash
57- run : |
58- auth_header="$(git config --local --get http.https://github.com/.extraheader)"
59- git submodule sync --recursive
60- git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
61-
6257 - name : Checkout viewer
63- uses : actions/checkout@v4
58+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6459 with :
60+ persist-credentials : false
6561 repository : nextcloud/viewer
6662 ref : ${{ matrix.server-versions }}
6763 path : apps/viewer
@@ -87,12 +83,13 @@ jobs:
8783 ref : ${{ matrix.server-versions }}
8884
8985 - name : Checkout app
90- uses : actions/checkout@v4
86+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9187 with :
88+ persist-credentials : false
9289 path : apps/${{ env.APP_NAME }}
9390
9491 - name : Set up node from version file
95- uses : actions/setup-node@v4
92+ uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
9693 with :
9794 cache : ' npm'
9895 cache-dependency-path : apps/${{ env.APP_NAME}}/package-lock.json
@@ -107,12 +104,12 @@ jobs:
107104
108105
109106 - name : Use Node.js ${{ matrix.node-version }}
110- uses : actions/setup-node@v4
107+ uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
111108 with :
112109 node-version : ${{ matrix.node-version }}
113110
114111 - name : Set up php ${{ matrix.php-versions }}
115- uses : shivammathur/setup-php@v2
112+ uses : shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
116113 with :
117114 php-version : ${{ matrix.php-versions }}
118115 extensions : bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, zip, zlib, sqlite, pdo_sqlite, apcu, pgsql, pdo_pgsql,mysql, pdo_mysql
@@ -144,7 +141,7 @@ jobs:
144141 cat data/nextcloud.log
145142
146143 - name : Cypress run
147- uses : cypress-io/github-action@v4
144+ uses : cypress-io/github-action@8a35f965fbd13e3b18d9fb3bdc5f50ae2f4a5e76 # v7.1.0
148145 with :
149146 wait-on : ' ${{ env.CYPRESS_baseUrl }}'
150147 working-directory : ' apps/${{ env.APP_NAME }}'
@@ -164,15 +161,15 @@ jobs:
164161 cat data/nextcloud.log
165162
166163 - name : Upload test failure screenshots ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
167- uses : actions/upload-artifact@v4
164+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
168165 if : failure()
169166 with :
170167 name : Upload screenshots ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
171168 path : apps/${{ env.APP_NAME }}/cypress/screenshots/
172169 retention-days : 5
173170
174171 - name : Upload nextcloud logs ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
175- uses : actions/upload-artifact@v4
172+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
176173 if : failure()
177174 with :
178175 name : Upload nextcloud log ${{ matrix.node-version }}-${{ matrix.php-versions }}-${{ matrix.server-versions }}-${{ matrix.databases }}
0 commit comments