Skip to content

Commit 8450efc

Browse files
Merge pull request #53056 from nextcloud/ci/noid/ghActionSync
GH action sync
2 parents 86d9289 + 3aa1706 commit 8450efc

31 files changed

+131
-60
lines changed

.github/workflows/block-unconventional-commits.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
with:
32+
persist-credentials: false
3133

3234
- uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0
3335
with:

.github/workflows/command-compile.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
issue_comment:
1212
types: [created]
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
init:
1619
runs-on: ubuntu-latest
@@ -102,6 +105,7 @@ jobs:
102105
- name: Checkout ${{ needs.init.outputs.head_ref }}
103106
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104107
with:
108+
# Needed to allow force push later
105109
persist-credentials: true
106110
token: ${{ secrets.COMMAND_BOT_PAT }}
107111
fetch-depth: 0
@@ -120,7 +124,7 @@ jobs:
120124
fallbackNpm: '^10'
121125

122126
- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
123-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
127+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
124128
with:
125129
node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }}
126130
cache: npm

.github/workflows/cypress.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,16 @@ env:
1818
# Adjust APP_NAME if your repository name is different
1919
APP_NAME: ${{ github.event.repository.name }}
2020

21-
# Server requires head_ref instead of base_ref, as we want to test the PR branch
21+
# This represents the server branch to checkout.
22+
# Usually it's the base branch of the PR, but for pushes it's the branch itself.
23+
# e.g. 'main', 'stable27' or 'feature/my-feature'
24+
# n.b. server will use head_ref, as we want to test the PR branch.
2225
BRANCH: ${{ github.head_ref || github.ref_name }}
2326

27+
28+
permissions:
29+
contents: read
30+
2431
jobs:
2532
init:
2633
runs-on: ubuntu-latest
@@ -43,6 +50,7 @@ jobs:
4350
- name: Checkout server
4451
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4552
with:
53+
persist-credentials: false
4654
# We need to checkout submodules for 3rdparty
4755
submodules: true
4856

@@ -64,7 +72,7 @@ jobs:
6472
fallbackNpm: "^10"
6573

6674
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
67-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
75+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
6876
with:
6977
node-version: ${{ steps.versions.outputs.nodeVersion }}
7078

@@ -80,7 +88,7 @@ jobs:
8088
run: npm run cypress:version
8189

8290
- name: Save context
83-
uses: buildjet/cache/save@v4
91+
uses: buildjet/cache/save@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
8492
with:
8593
key: cypress-context-${{ github.run_id }}
8694
path: ./
@@ -94,7 +102,7 @@ jobs:
94102
matrix:
95103
# Run multiple copies of the current job in parallel
96104
# Please increase the number or runners as your tests suite grows (0 based index for e2e tests)
97-
containers: ["component", '0', '1', '2', '3', '4', '5', '6', '7']
105+
containers: ['component', '0', '1', '2', '3', '4', '5', '6', '7']
98106
# Hack as strategy.job-total includes the component and GitHub does not allow math expressions
99107
# Always align this number with the total of e2e runners (max. index + 1)
100108
total-containers: [8]
@@ -103,14 +111,14 @@ jobs:
103111

104112
steps:
105113
- name: Restore context
106-
uses: buildjet/cache/restore@v4
114+
uses: buildjet/cache/restore@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4 # v4.0.2
107115
with:
108116
fail-on-cache-miss: true
109117
key: cypress-context-${{ github.run_id }}
110118
path: ./
111119

112120
- name: Set up node ${{ needs.init.outputs.nodeVersion }}
113-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
121+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
114122
with:
115123
node-version: ${{ needs.init.outputs.nodeVersion }}
116124

@@ -142,8 +150,8 @@ jobs:
142150
SPLIT: ${{ matrix.total-containers }}
143151
SPLIT_INDEX: ${{ matrix.containers == 'component' && 0 || matrix.containers }}
144152

145-
- name: Upload snapshots and videos
146-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
153+
- name: Upload snapshots
154+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
147155
if: always()
148156
with:
149157
name: snapshots_videos_${{ matrix.containers }}
@@ -156,7 +164,7 @@ jobs:
156164
run: docker logs nextcloud-cypress-tests_${{ env.APP_NAME }} > nextcloud.log
157165

158166
- name: Upload NC logs
159-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
167+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
160168
if: failure() && matrix.containers != 'component'
161169
with:
162170
name: nc_logs_${{ matrix.containers }}
@@ -167,7 +175,7 @@ jobs:
167175
run: docker exec nextcloud-cypress-tests_${{ env.APP_NAME }} tar -cvjf - data > data.tar
168176

169177
- name: Upload data dir archive
170-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
178+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
171179
if: failure() && matrix.containers != 'component'
172180
with:
173181
name: nc_data_${{ matrix.containers }}

.github/workflows/dependabot-approve-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: Dependabot
1010

1111
on:
12-
pull_request_target:
12+
pull_request_target: # zizmor: ignore[dangerous-triggers]
1313
branches:
1414
- main
1515
- master
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
auto-approve-merge:
27-
if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]'
27+
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]'
2828
runs-on: ubuntu-latest-low
2929
permissions:
3030
# for hmarr/auto-approve-action to approve PRs

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100

101101
- name: Upload code coverage
102102
if: ${{ !cancelled() && matrix.coverage }}
103-
uses: codecov/codecov-action@v5.0.7
103+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
104104
with:
105105
files: ./clover.xml
106106
flags: phpunit-files-external-ftp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

9999
- name: Upload code coverage
100100
if: ${{ !cancelled() && matrix.coverage }}
101-
uses: codecov/codecov-action@v5.0.7
101+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
102102
with:
103103
files: ./clover.xml
104104
flags: phpunit-files-external-s3
@@ -165,7 +165,7 @@ jobs:
165165

166166
- name: Upload code coverage
167167
if: ${{ !cancelled() && matrix.coverage }}
168-
uses: codecov/codecov-action@v5.0.7
168+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
169169
with:
170170
files: ./clover.xml
171171
flags: phpunit-files-external-s3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989

9090
- name: Upload code coverage
9191
if: ${{ !cancelled() && matrix.coverage }}
92-
uses: codecov/codecov-action@v5.0.7
92+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9393
with:
9494
files: ./clover.xml
9595
flags: phpunit-files-external-sftp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Upload code coverage
9696
if: ${{ !cancelled() && matrix.coverage }}
97-
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v4.1.1
97+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9898
with:
9999
files: ./clover.xml
100100
flags: phpunit-files-external-smb

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Upload code coverage
9393
if: ${{ !cancelled() && matrix.coverage }}
94-
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v4.1.1
94+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9595
with:
9696
files: ./clover.xml
9797
flags: phpunit-files-external-webdav

.github/workflows/files-external.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Upload code coverage
8181
if: ${{ !cancelled() && matrix.coverage }}
82-
uses: codecov/codecov-action@v5.0.7
82+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
8383
with:
8484
files: ./clover.xml
8585
flags: phpunit-files-external-generic

0 commit comments

Comments
 (0)