2424 # n.b. server will use head_ref, as we want to test the PR branch.
2525 BRANCH : ${{ github.base_ref || github.ref_name }}
2626
27+
28+ permissions :
29+ contents : read
30+
2731jobs :
2832 init :
2933 runs-on : ubuntu-latest-low
4246 exit 1
4347
4448 - name : Checkout app
45- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+ with :
51+ persist-credentials : false
4652
4753 - name : Check composer.json
4854 id : check_composer
6268 fallbackNpm : " ^10"
6369
6470 - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
65- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
71+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
6672 with :
6773 node-version : ${{ steps.versions.outputs.nodeVersion }}
6874
7581 TESTING=true npm run build --if-present
7682
7783 - name : Save context
78- uses : buildjet/cache/save@e376f15c6ec6dc595375c78633174c7e5f92dc0e # v3
84+ uses : buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
7985 with :
8086 key : cypress-context-${{ github.run_id }}
8187 path : ./
@@ -95,22 +101,22 @@ jobs:
95101
96102 steps :
97103 - name : Restore context
98- uses : buildjet/cache/restore@e376f15c6ec6dc595375c78633174c7e5f92dc0e # v3
104+ uses : buildjet/cache/restore@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
99105 with :
100106 fail-on-cache-miss : true
101107 key : cypress-context-${{ github.run_id }}
102108 path : ./
103109
104110 - name : Set up node ${{ needs.init.outputs.nodeVersion }}
105- uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
111+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
106112 with :
107113 node-version : ${{ needs.init.outputs.nodeVersion }}
108114
109115 - name : Set up npm ${{ needs.init.outputs.npmVersion }}
110116 run : npm i -g 'npm@${{ needs.init.outputs.npmVersion }}'
111117
112118 - name : Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} cypress tests
113- uses : cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2
119+ uses : cypress-io/github-action@57b70560982e6a11d23d4b8bec7f8a487cdbb71b # v6.7.8
114120 with :
115121 record : ${{ secrets.CYPRESS_RECORD_KEY && true }}
116122 parallel : ${{ secrets.CYPRESS_RECORD_KEY && true }}
@@ -133,7 +139,7 @@ jobs:
133139 CYPRESS_GROUP : Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }}
134140
135141 - name : Upload snapshots
136- uses : actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
142+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
137143 if : always()
138144 with :
139145 name : snapshots_${{ matrix.containers }}
@@ -144,7 +150,7 @@ jobs:
144150 run : docker logs nextcloud-cypress-tests-${{ env.APP_NAME }} > nextcloud.log
145151
146152 - name : Upload NC logs
147- uses : actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
153+ uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
148154 if : failure() && matrix.containers != 'component'
149155 with :
150156 name : nc_logs_${{ matrix.containers }}
0 commit comments