5454
5555 steps :
5656 - name : Checkout server
57- uses : actions/checkout@v2
57+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858 with :
5959 repository : nextcloud/server
6060 ref : ${{ matrix.server-versions }}
@@ -71,27 +71,27 @@ jobs:
7171 run : sudo apt update && sudo apt install -y ssl-cert
7272
7373 - name : Set up php ${{ matrix.php-versions }}
74- uses : shivammathur/setup-php@v2
74+ uses : shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
7575 with :
7676 php-version : ${{ matrix.php-versions }}
7777 tools : phpunit
7878 extensions : mbstring, iconv, fileinfo, intl, sqlite, pdo_mysql, pdo_sqlite, pgsql, pdo_pgsql, gd, zip
7979
8080 - name : Checkout app
81- uses : actions/checkout@v2
81+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8282 with :
8383 path : apps/${{ env.APP_NAME }}
8484
8585 - name : Read package.json node and npm engines version
86- uses : skjnldsv/read-package-engines-version-actions@v1.1
86+ uses : skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
8787 id : versions
8888 with :
8989 path : apps/${{ env.APP_NAME }}
9090 fallbackNode : ' ^12'
9191 fallbackNpm : ' ^6'
9292
9393 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
94- uses : actions/setup-node@v2
94+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
9595 with :
9696 node-version : ${{ steps.versions.outputs.nodeVersion }}
9797
@@ -136,7 +136,7 @@ jobs:
136136 run : |
137137 rm -rf apps/recognize/models
138138
139- - uses : actions/cache/restore@v3
139+ - uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
140140 id : photos-cache
141141 with :
142142 path : data/admin/files/
@@ -151,7 +151,7 @@ jobs:
151151 unzip IMDb-Face.zip
152152 rm IMDb-Face.zip
153153
154- - uses : actions/cache/save@v3
154+ - uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
155155 with :
156156 path : data/admin/files/
157157 key : https://cloud.nextcloud.com/public.php/dav/files/wfDk23DBsXYrd4S/IMDb-Face.zip
@@ -163,7 +163,7 @@ jobs:
163163 # only use one core. GH actions has 2
164164 ./occ config:app:set --value 1 recognize tensorflow.cores
165165
166- - uses : actions/cache/restore@v3
166+ - uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
167167 id : db-cache
168168 with :
169169 path : data/nextcloud.db
@@ -177,7 +177,7 @@ jobs:
177177 ./occ files:scan admin
178178 ./occ recognize:classify
179179
180- - uses : actions/cache/save@v3
180+ - uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
181181 with :
182182 path : data/nextcloud.db
183183 key : ${{ steps.db-cache.outputs.cache-primary-key }}
@@ -194,7 +194,7 @@ jobs:
194194 run : |
195195 sqlite3 data/nextcloud.db "select x, y, path from oc_recognize_face_detections d LEFT JOIN oc_filecache c ON c.fileid = d.file_id where user_id = 'admin' ORDER BY path;" > out.txt
196196
197- - uses : actions/cache/restore@v3
197+ - uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
198198 id : clustering-cache
199199 with :
200200 path : out.json
@@ -251,7 +251,7 @@ jobs:
251251 cat out.xml | xq '.["d:multistatus"]["d:response"] | map(select(.["d:href"] | test("faces/.+?/.+?"))) | map({"href": .["d:href"], "realpath": .["d:propstat"][0]["d:prop"]["nc:realpath"], "face-detections": .["d:propstat"][0]["d:prop"]["nc:face-detections"] | fromjson | map({userId, x, y, height, width, clusterId}) })' > out.json
252252 cat out.json
253253
254- - uses : actions/cache/save@v3
254+ - uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
255255 with :
256256 path : out.json
257257 key : ${{ steps.clustering-cache.outputs.cache-primary-key }}
0 commit comments