Skip to content

Commit b7f37e1

Browse files
Pin dependencies
1 parent 028dd12 commit b7f37e1

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
outputs:
1515
example-widget-mui-image-tag: ${{ steps.meta_example-widget-mui.outputs.version }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818
with:
1919
fetch-depth: '0'
2020
# don't persist the credentials so the changesets action doesn't use the
2121
# github actions token but the git token provided via environment variable
2222
persist-credentials: false
2323

24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2525
with:
2626
node-version: 'lts/*'
2727
cache: 'yarn'
@@ -55,18 +55,18 @@ jobs:
5555
run: yarn check-api-report
5656

5757
- name: Login to ghcr.io
58-
uses: docker/login-action@v3
58+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
5959
with:
6060
registry: ghcr.io
6161
username: ${{ github.repository_owner }}
6262
password: ${{ secrets.GITHUB_TOKEN }}
6363

6464
- name: Set up Docker Buildx
65-
uses: docker/setup-buildx-action@v3
65+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
6666

6767
- name: Generate Docker metadata (example-widget-mui)
6868
id: meta_example-widget-mui
69-
uses: docker/metadata-action@v5
69+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
7070
env:
7171
DOCKER_METADATA_PR_HEAD_SHA: true
7272
with:
@@ -79,7 +79,7 @@ jobs:
7979
type=sha,prefix=
8080
8181
- name: Build and push (example-widget-mui)
82-
uses: docker/build-push-action@v6
82+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
8383
id: dockerBuild
8484
with:
8585
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'pull_request' && secrets.GH_APP_OS_APP_ID != '' }}
@@ -114,17 +114,17 @@ jobs:
114114
run: echo $IMAGE_TAG
115115

116116
- name: Checkout
117-
uses: actions/checkout@v4
117+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
118118
with:
119119
fetch-depth: 0 # need main branch to diff against
120120
- name: Set up Helm
121-
uses: azure/setup-helm@v4
122-
- uses: actions/setup-python@v5
121+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
122+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
123123
with:
124124
python-version: '3.13'
125125
check-latest: true
126126
- name: Set up chart-testing
127-
uses: helm/[email protected]
127+
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
128128
- name: Check if Helm charts updated (run chart-testing list-changed)
129129
id: list-changed
130130
run: |
@@ -138,7 +138,7 @@ jobs:
138138
run: ct lint --validate-maintainers=false --target-branch ${{ github.event.repository.default_branch }}
139139
- name: Create kind cluster
140140
if: steps.list-changed.outputs.changed == 'true'
141-
uses: helm/[email protected]
141+
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
142142
- name: Prepare k8s cluster
143143
if: steps.list-changed.outputs.changed == 'true'
144144
run: |
@@ -155,9 +155,9 @@ jobs:
155155
env:
156156
DOCKER_PLATFORMS: linux/amd64,linux/arm64,linux/s390x
157157
steps:
158-
- uses: actions/checkout@v4
158+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
159159

160-
- uses: actions/setup-node@v4
160+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
161161
with:
162162
node-version: 'lts/*'
163163
cache: 'yarn'
@@ -167,17 +167,17 @@ jobs:
167167
run: yarn install --frozen-lockfile
168168

169169
- name: Login to ghcr.io
170-
uses: docker/login-action@v3
170+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3
171171
with:
172172
registry: ghcr.io
173173
username: ${{ github.repository_owner }}
174174
password: ${{ secrets.GITHUB_TOKEN }}
175175

176176
- name: Set up Docker Buildx
177-
uses: docker/setup-buildx-action@v3
177+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
178178

179179
- name: Generate docker tag
180-
uses: actions/github-script@v7
180+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
181181
id: vars
182182
with:
183183
script: |
@@ -190,7 +190,7 @@ jobs:
190190
191191
- name: Generate Docker metadata
192192
id: meta
193-
uses: docker/metadata-action@v5
193+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5
194194
with:
195195
images: ghcr.io/nordeck/matrix-widget-toolkit/widget-server
196196
labels: |
@@ -204,15 +204,15 @@ jobs:
204204
type=semver,pattern={{major}},value=${{ steps.vars.outputs.version }}
205205
206206
- name: Build
207-
uses: docker/build-push-action@v6
207+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
208208
with:
209209
context: containers/widget-server
210210
platforms: ${{ env.DOCKER_PLATFORMS }}
211211
tags: ${{ steps.meta.outputs.tags }}
212212
labels: ${{ steps.meta.outputs.labels }}
213213

214214
- name: Load
215-
uses: docker/build-push-action@v6
215+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
216216
id: dockerLoad
217217
with:
218218
load: true
@@ -221,7 +221,7 @@ jobs:
221221
labels: ${{ steps.meta.outputs.labels }}
222222

223223
- name: Restore Cached Browsers
224-
uses: actions/cache@v4
224+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
225225
with:
226226
path: ~/.cache/ms-playwright
227227
key: ${{ runner.os }}-browsers
@@ -235,7 +235,7 @@ jobs:
235235
IMAGE_ID: ${{ steps.dockerLoad.outputs.imageid }}
236236
run: yarn playwright test
237237

238-
- uses: actions/upload-artifact@v4
238+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
239239
if: always()
240240
with:
241241
name: playwright-report
@@ -270,7 +270,7 @@ jobs:
270270
271271
- name: Build and push
272272
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.tag-exists.outputs.result == 'false' }}
273-
uses: docker/build-push-action@v6
273+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
274274
with:
275275
push: true
276276
context: containers/widget-server
@@ -296,7 +296,7 @@ jobs:
296296
private_key: ${{ secrets.GH_APP_OS_PRIVATE_KEY }}
297297

298298
- name: Trigger Workflow
299-
uses: actions/github-script@v7
299+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
300300
with:
301301
github-token: ${{ steps.generate_token.outputs.token }}
302302
script: |

containers/widget-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.27.4-alpine-perl
1+
FROM nginx:1.27.4-alpine-perl@sha256:b948629705bb94a3947846babda0a222577b1eadcc3e551bfafef47c7581666b
22

33
# Install envsubst
44
RUN apk add --no-cache gettext

example-widget-mui/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/nordeck/matrix-widget-toolkit/widget-server:1
1+
FROM ghcr.io/nordeck/matrix-widget-toolkit/widget-server:1@sha256:e20146b7f11dfb663874fed7a289e412ce6e8e623c6eb2261e35a220029ba042
22

33
# Allow loading images from all HTTP(s) URLs and blobs
44
ENV CSP_IMG_SRC="http: https: blob:"

0 commit comments

Comments
 (0)