Skip to content

Commit 0e5639e

Browse files
authored
Merge pull request #2285 from nextcloud/ci/noid/actions
ci(actions): Pin all used versions
2 parents d486ac2 + a86a429 commit 0e5639e

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

.github/workflows/app-upgrade-mysql.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
services:
5353
mysql:
54-
image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:latest
54+
image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:latest # zizmor: ignore[unpinned-images]
5555
ports:
5656
- 4444:3306/tcp
5757
env:
@@ -65,8 +65,9 @@ jobs:
6565
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
6666
6767
- name: Checkout server
68-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
68+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6969
with:
70+
persist-credentials: false
7071
submodules: true
7172
repository: nextcloud/server
7273
ref: ${{ matrix.server-versions }}
@@ -77,15 +78,17 @@ jobs:
7778
echo "text_app_ref=$text_app_ref" >> $GITHUB_ENV
7879
7980
- name: Checkout text app
80-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
81+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8182
with:
83+
persist-credentials: false
8284
repository: nextcloud/text
8385
path: apps/text
8486
ref: ${{ env.text_app_ref }}
8587

8688
- name: Checkout viewer app
87-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
89+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8890
with:
91+
persist-credentials: false
8992
repository: nextcloud/viewer
9093
path: apps/viewer
9194
ref: ${{ matrix.server-versions }}
@@ -117,8 +120,9 @@ jobs:
117120
./occ app:enable --force ${{ env.APP_NAME }}
118121
119122
- name: Checkout app
120-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
123+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
121124
with:
125+
persist-credentials: false
122126
path: apps/${{ env.APP_NAME }}
123127

124128
- name: Set up dependencies
@@ -131,7 +135,7 @@ jobs:
131135
./occ app:list
132136
133137
- name: Upload nextcloud logs
134-
uses: actions/upload-artifact@v4
138+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
135139
if: always()
136140
with:
137141
name: nextcloud.log

.github/workflows/cypress-component.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Checkout app
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3335

3436
- name: Set up Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3638
with:
3739
node-version: ${{ matrix.node-version }}
3840
cache: 'npm'
@@ -48,15 +50,15 @@ jobs:
4850
run: npm run tests:component
4951

5052
- name: Upload test failure screenshots
51-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5254
if: failure()
5355
with:
5456
name: cypress-component-screenshots-node${{ matrix.node-version }}
5557
path: cypress/screenshots/
5658
retention-days: 5
5759

5860
- name: Upload test videos
59-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6062
if: failure()
6163
with:
6264
name: cypress-component-videos-node${{ matrix.node-version }}

.github/workflows/cypress-custom.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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 }}

.github/workflows/integration.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
services:
7676
postgres:
77-
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest
77+
image: ghcr.io/nextcloud/continuous-integration-postgres-14:latest # zizmor: ignore[unpinned-images]
7878
ports:
7979
- 4445:5432/tcp
8080
env:
@@ -83,7 +83,7 @@ jobs:
8383
POSTGRES_DB: nextcloud
8484
options: --health-cmd pg_isready --health-interval 5s --health-timeout 2s --health-retries 5
8585
mysql:
86-
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
86+
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest # zizmor: ignore[unpinned-images]
8787
ports:
8888
- 4444:3306/tcp
8989
env:
@@ -92,25 +92,21 @@ jobs:
9292

9393
steps:
9494
- name: Checkout server
95-
uses: actions/checkout@v4
95+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9696
with:
97+
persist-credentials: false
98+
submodules: true
9799
repository: nextcloud/server
98100
ref: ${{ matrix.server-versions }}
99101

100-
- name: Checkout submodules
101-
shell: bash
102-
run: |
103-
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
104-
git submodule sync --recursive
105-
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
106-
107102
- name: Checkout app
108-
uses: actions/checkout@v4
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
109104
with:
105+
persist-credentials: false
110106
path: apps/${{ env.APP_NAME }}
111107

112108
- name: Set up php ${{ matrix.php-versions }}
113-
uses: shivammathur/setup-php@2.34.1
109+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
114110
with:
115111
php-version: ${{ matrix.php-versions }}
116112
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

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base", ":semanticCommits", ":gitSignOff"],
3+
"extends": ["config:base", ":semanticCommits", ":gitSignOff", "helpers:pinGitHubActionDigests"],
44
"timezone": "Europe/Berlin",
55
"schedule": ["every weekend"],
66
"labels": ["dependencies", "3. to review"],
77
"rangeStrategy": "bump",
8+
"minimumReleaseAge": "7 days",
89
"rebaseWhen": "conflicted",
910
"ignoreUnstable": false,
1011
"baseBranches": ["main", "stable1.0", "stable0.9"],

0 commit comments

Comments
 (0)