Skip to content

Commit e2057d2

Browse files
committed
chore: pin github actions to SHA hashes
1 parent 7d19209 commit e2057d2

22 files changed

Lines changed: 84 additions & 84 deletions

.github/actions/build-docker/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ runs:
3737
steps:
3838
- name: Login to GitHub Container Registry
3939
if: inputs.publish-image == 'true' && github.actor != 'dependabot[bot]' && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop')
40-
uses: docker/login-action@v3
40+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
4141
with:
4242
registry: ghcr.io
4343
username: ${{ inputs.CR_USER }}
4444
password: ${{ inputs.CR_PAT }}
4545

4646
- name: Restore meteor build
4747
if: inputs.service == 'rocketchat'
48-
uses: actions/download-artifact@v6
48+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
4949
with:
5050
name: build-${{ inputs.type }}
5151
path: /tmp/build
@@ -60,7 +60,7 @@ runs:
6060
6161
- name: Set up Docker
6262
if: inputs.setup-docker == 'true'
63-
uses: docker/setup-docker-action@v4
63+
uses: docker/setup-docker-action@e43656e248c0bd0647d3f5c195d116aacf6fcaf4 # v4.7.0
6464
with:
6565
daemon-config: |
6666
{
@@ -175,13 +175,13 @@ runs:
175175
176176
- name: Upload Docker image artifact
177177
if: inputs.publish-image == 'false' && inputs.arch == 'amd64'
178-
uses: actions/upload-artifact@v4
178+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
179179
with:
180180
name: docker-image-${{ inputs.service }}-${{ inputs.arch }}-${{ inputs.type }}
181181
path: /tmp/docker-images/${{ inputs.service }}-${{ inputs.arch }}-${{ inputs.type }}.tar
182182
retention-days: 1
183183

184-
- uses: actions/upload-artifact@v4
184+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
185185
if: inputs.publish-image == 'true'
186186
with:
187187
name: manifests-${{ inputs.service }}-${{ inputs.arch }}-${{ inputs.type }}

.github/actions/docker-image-size-tracker/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
using: 'composite'
5858
steps:
5959
- name: Download manifests
60-
uses: actions/download-artifact@v6
60+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
6161
with:
6262
pattern: manifests-*
6363
path: /tmp/manifests

.github/actions/meteor-build/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ runs:
2727

2828
steps:
2929
- name: Cache build
30-
uses: actions/cache@v5
30+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3131
id: cache-build
3232
with:
3333
path: /tmp/Rocket.Chat.tar.gz
3434
key: ${{ runner.arch }}-${{ runner.os }}-${{ inputs.type }}-rc-build-${{ inputs.source-hash }}
3535

3636
- name: Set Swap Space
37-
uses: pierotofy/set-swap-space@master
37+
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0.0
3838
if: steps.cache-build.outputs.cache-hit != 'true'
3939
with:
4040
swap-size-gb: 4
@@ -66,7 +66,7 @@ runs:
6666
# df -h
6767

6868
- name: Cache vite
69-
uses: actions/cache@v5
69+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
7070
if: steps.cache-build.outputs.cache-hit != 'true'
7171
with:
7272
path: ./node_modules/.vite
@@ -75,7 +75,7 @@ runs:
7575
vite-local-cache-${{ runner.arch }}-${{ runner.os }}-
7676
7777
- name: Cache meteor local
78-
uses: actions/cache@v5
78+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
7979
if: steps.cache-build.outputs.cache-hit != 'true'
8080
with:
8181
path: ./apps/meteor/.meteor/local
@@ -84,7 +84,7 @@ runs:
8484
meteor-local-cache-${{ runner.arch }}-${{ runner.os }}-${{ inputs.type }}-
8585
8686
- name: Cache meteor
87-
uses: actions/cache@v5
87+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8888
if: steps.cache-build.outputs.cache-hit != 'true'
8989
with:
9090
path: ~/.meteor
@@ -134,7 +134,7 @@ runs:
134134
run: meteor reset
135135

136136
- name: Restore packages build
137-
uses: actions/download-artifact@v6
137+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
138138
with:
139139
name: packages-build
140140
path: /tmp
@@ -210,7 +210,7 @@ runs:
210210
tar czf /tmp/Rocket.Chat.tar.gz bundle
211211
212212
- name: Store build
213-
uses: actions/upload-artifact@v4
213+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
214214
with:
215215
name: build-${{ inputs.type }}
216216
path: /tmp/Rocket.Chat.tar.gz

.github/actions/restore-packages/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
using: 'composite'
66
steps:
77
- name: Restore packages build
8-
uses: actions/download-artifact@v8
8+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
99
with:
1010
name: packages-build
1111
path: /tmp

.github/actions/setup-node/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
- name: Cache Deno (apps-engine)
6060
if: inputs.cache-modules
6161
id: cache-deno
62-
uses: actions/cache@v5
62+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
6363
with:
6464
path: packages/apps-engine/.deno-cache
6565
key: deno-${{ runner.os }}-${{ runner.arch }}-v${{ env.DENO_VERSION }}-${{ hashFiles('packages/apps-engine/deno-runtime/deno.lock') }}
@@ -68,7 +68,7 @@ runs:
6868
6969
- name: Use Node.js ${{ env.NODE_VERSION }}
7070
id: node-version
71-
uses: actions/setup-node@v6.0.0
71+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
7272
with:
7373
node-version: ${{ env.NODE_VERSION }}
7474
cache: ${{ inputs.cache-modules && 'yarn' || '' }}
@@ -80,7 +80,7 @@ runs:
8080

8181
- name: Cache mongodb-memory-server binary
8282
if: inputs.cache-modules
83-
uses: actions/cache@v5
83+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8484
with:
8585
path: ${{ runner.temp }}/mongodb-memory-server
8686
key: mongoms-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

.github/actions/setup-playwright/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66

77
steps:
88
- name: Cache Playwright binaries
9-
uses: actions/cache@v5
9+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
1010
id: cache-playwright
1111
with:
1212
path: |

.github/workflows/auto-close-duplicates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: Setup Bun
21-
uses: oven-sh/setup-bun@v2
21+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
2222
with:
2323
bun-version: latest
2424

.github/workflows/ci-code-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626

2727
steps:
2828
- name: Set Swap Space
29-
uses: pierotofy/set-swap-space@master
29+
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0.0
3030
with:
3131
swap-size-gb: 4
3232

33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434

3535
- name: Setup NodeJS
3636
uses: ./.github/actions/setup-node
@@ -48,7 +48,7 @@ jobs:
4848
- name: Restore TypeScript incremental cache
4949
id: restore-typecheck
5050
if: matrix.check == 'ts'
51-
uses: actions/cache/restore@v5
51+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5252
with:
5353
path: ./apps/meteor/tsconfig.typecheck.tsbuildinfo
5454
key: typecheck-cache-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
@@ -89,15 +89,15 @@ jobs:
8989

9090
- name: Save TypeScript incremental cache
9191
if: matrix.check == 'ts' && github.ref == 'refs/heads/develop' && github.event_name == 'push'
92-
uses: actions/cache/save@v5
92+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
9393
with:
9494
path: ./apps/meteor/tsconfig.typecheck.tsbuildinfo
9595
key: typecheck-cache-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
9696

9797
- name: Restore ESLint cache
9898
id: restore-eslint
9999
if: matrix.check == 'lint'
100-
uses: actions/cache/restore@v5
100+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
101101
with:
102102
path: ./apps/meteor/.eslintcache
103103
key: eslintcache-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
@@ -118,7 +118,7 @@ jobs:
118118

119119
- name: Save ESLint cache
120120
if: matrix.check == 'lint' && github.ref == 'refs/heads/develop' && github.event_name == 'push'
121-
uses: actions/cache/save@v5
121+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
122122
with:
123123
path: ./apps/meteor/.eslintcache
124124
key: eslintcache-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

.github/workflows/ci-deploy-gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
deploy-preview:
1212
runs-on: ubuntu-24.04-arm
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
- uses: rharkor/caching-for-turbo@00a0515f175df9fd2e15c4560144ad5fdbebb0c7 # v2.3.13
1616

1717
- name: Setup NodeJS
@@ -30,7 +30,7 @@ jobs:
3030
mv ${{ github.ref_name }} .preview
3131
3232
- name: Deploy
33-
uses: peaceiris/actions-gh-pages@v4
33+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
3434
with:
3535
github_token: ${{ secrets.GITHUB_TOKEN }}
3636
publish_dir: .preview

.github/workflows/ci-test-e2e.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
steps:
9292
- name: Collect Workflow Telemetry
9393
if: inputs.type == 'perf'
94-
uses: catchpoint/workflow-telemetry-action@v2
94+
uses: catchpoint/workflow-telemetry-action@94c3c3d9567a0205de6da68a76c428ce4e769af1 # v2.0.0
9595
with:
9696
theme: dark
9797
job_summary: true
@@ -108,13 +108,13 @@ jobs:
108108
109109
- name: Login to GitHub Container Registry
110110
if: (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'release' || github.ref == 'refs/heads/develop') && github.actor != 'dependabot[bot]'
111-
uses: docker/login-action@v4
111+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
112112
with:
113113
registry: ghcr.io
114114
username: ${{ secrets.CR_USER }}
115115
password: ${{ secrets.CR_PAT }}
116116

117-
- uses: actions/checkout@v6
117+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
118118

119119
- name: Setup NodeJS
120120
uses: ./.github/actions/setup-node
@@ -131,7 +131,7 @@ jobs:
131131

132132
# Download Docker images from build artifacts
133133
- name: Download Docker images
134-
uses: actions/download-artifact@v8
134+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
135135
if: github.event.pull_request.head.repo.full_name != github.repository && github.event_name != 'release' && github.ref != 'refs/heads/develop'
136136
with:
137137
pattern: ${{ inputs.release == 'ce' && 'docker-image-rocketchat-amd64-coverage' || 'docker-image-*-amd64-coverage' }}
@@ -275,7 +275,7 @@ jobs:
275275
276276
- name: Store playwright test trace
277277
if: inputs.type == 'ui' && always()
278-
uses: actions/upload-artifact@v7
278+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
279279
with:
280280
name: playwright-test-trace-${{ inputs.release }}-${{ matrix.mongodb-version }}-${{ matrix.shard }}
281281
path: ./apps/meteor/tests/e2e/.playwright*
@@ -291,7 +291,7 @@ jobs:
291291

292292
- name: Store coverage
293293
if: inputs.coverage == matrix.mongodb-version
294-
uses: actions/upload-artifact@v7
294+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
295295
with:
296296
name: coverage-${{ inputs.type }}-${{ matrix.shard }}
297297
path: /tmp/coverage

0 commit comments

Comments
 (0)