Skip to content

Commit 5472dd8

Browse files
committed
merge upstream
2 parents 03402ea + 6d14f1d commit 5472dd8

76 files changed

Lines changed: 4565 additions & 3177 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/blocked.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
name: Prevent blocked
22
on:
3+
# zizmor: ignore[dangerous-triggers]
4+
# Reason: This workflow does not checkout code or use secrets.
5+
# It only reads labels to set a failure status on the PR.
36
pull_request_target:
47
types: [opened, labeled, unlabeled, synchronize]
8+
9+
permissions:
10+
pull-requests: read
11+
# Required to fail the check on the PR
12+
statuses: write
13+
514
jobs:
615
prevent-blocked:
716
name: Prevent blocked

.github/workflows/build-element-call.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
steps:
3434
- name: Checkout code
3535
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
36+
with:
37+
persist-credentials: false
3638
- name: Enable Corepack
3739
run: corepack enable
3840
- name: Yarn cache
@@ -43,7 +45,7 @@ jobs:
4345
- name: Install dependencies
4446
run: "yarn install --immutable"
4547
- name: Build Element Call
46-
run: ${{ format('yarn run build:{0}:{1}', inputs.package, inputs.build_mode) }}
48+
run: yarn run build:"$PACKAGE":"$BUILD_MODE"
4749
env:
4850
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
4951
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
@@ -52,6 +54,8 @@ jobs:
5254
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5355
VITE_APP_VERSION: ${{ inputs.vite_app_version }}
5456
NODE_OPTIONS: "--max-old-space-size=4096"
57+
PACKAGE: ${{ inputs.package }}
58+
BUILD_MODE: ${{ inputs.build_mode }}
5559
- name: Upload Artifact
5660
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5761
with:

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
steps:
99
- name: Checkout code
1010
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
11+
with:
12+
persist-credentials: false
1113
- name: Enable Corepack
1214
run: corepack enable
1315
- name: Yarn cache

.github/workflows/publish-embedded-packages.yaml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,18 @@ jobs:
2222
TAG: ${{ steps.tag.outputs.TAG }}
2323
steps:
2424
- name: Calculate VERSION
25-
# We should only use the hard coded test value for a dry run
26-
run: echo "VERSION=${{ github.event_name == 'release' && github.event.release.tag_name || 'v0.0.0-pre.0' }}" >> "$GITHUB_ENV"
25+
# Safely store dynamic values in environment variables
26+
# to prevent shell injection (template-injection)
27+
run: |
28+
# The logic is executed within the shell using the env variables
29+
if [ "$EVENT_NAME" = "release" ]; then
30+
echo "VERSION=$RELEASE_TAG" >> "$GITHUB_ENV"
31+
else
32+
echo "VERSION=v0.0.0-pre.0" >> "$GITHUB_ENV"
33+
fi
34+
env:
35+
RELEASE_TAG: ${{ github.event.release.tag_name }}
36+
EVENT_NAME: ${{ github.event_name }}
2737
- id: dry_run
2838
name: Set DRY_RUN
2939
# We perform a dry run for all events except releases.
@@ -71,7 +81,9 @@ jobs:
7181
contents: write # required to upload release asset
7282
steps:
7383
- name: Determine filename
74-
run: echo "FILENAME_PREFIX=sable-call-embedded-${{ needs.versioning.outputs.UNPREFIXED_VERSION }}" >> "$GITHUB_ENV"
84+
run: echo "FILENAME_PREFIX=sable-call-embedded-${NEEDS_VERSIONING_OUTPUTS_UNPREFIXED_VERSION}" >> "$GITHUB_ENV"
85+
env:
86+
NEEDS_VERSIONING_OUTPUTS_UNPREFIXED_VERSION: ${{ needs.versioning.outputs.UNPREFIXED_VERSION }}
7587
- name: Download built artifact
7688
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
7789
with:
@@ -80,9 +92,9 @@ jobs:
8092
name: build-output-embedded
8193
path: ${{ env.FILENAME_PREFIX}}
8294
- name: Create Tarball
83-
run: tar --numeric-owner -cvzf ${{ env.FILENAME_PREFIX }}.tar.gz ${{ env.FILENAME_PREFIX }}
95+
run: tar --numeric-owner -cvzf ${FILENAME_PREFIX}.tar.gz ${FILENAME_PREFIX}
8496
- name: Create Checksum
85-
run: find ${{ env.FILENAME_PREFIX }} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${{ env.FILENAME_PREFIX }}.sha256
97+
run: find ${FILENAME_PREFIX} -type f -print0 | sort -z | xargs -0 sha256sum | tee ${FILENAME_PREFIX}.sha256
8698
- name: Upload
8799
if: ${{ needs.versioning.outputs.DRY_RUN == 'false' }}
88100
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
@@ -104,6 +116,8 @@ jobs:
104116
steps:
105117
- name: Checkout
106118
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
119+
with:
120+
persist-credentials: false
107121

108122
- name: Download built artifact
109123
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
@@ -124,14 +138,16 @@ jobs:
124138
working-directory: embedded/web
125139
env:
126140
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
141+
NEEDS_VERSIONING_OUTPUTS_PREFIXED_VERSION: ${{ needs.versioning.outputs.PREFIXED_VERSION }}
142+
NEEDS_VERSIONING_OUTPUTS_TAG: ${{ needs.versioning.outputs.TAG }}
127143
run: |
128-
npm version ${{ needs.versioning.outputs.PREFIXED_VERSION }} --no-git-tag-version
144+
npm version ${NEEDS_VERSIONING_OUTPUTS_PREFIXED_VERSION} --no-git-tag-version
129145
echo "ARTIFACT_VERSION=$(jq '.version' --raw-output package.json)" >> "$GITHUB_ENV"
130-
npm publish --provenance --access public --tag ${{ needs.versioning.outputs.TAG }} ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }}
146+
npm publish --provenance --access public --tag ${NEEDS_VERSIONING_OUTPUTS_TAG} ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }}
131147
132148
- id: artifact_version
133149
name: Output artifact version
134-
run: echo "ARTIFACT_VERSION=${{env.ARTIFACT_VERSION}}" >> "$GITHUB_OUTPUT"
150+
run: echo "ARTIFACT_VERSION=${ARTIFACT_VERSION}" >> "$GITHUB_OUTPUT"
135151

136152
release_notes:
137153
needs: [versioning, publish_npm]
@@ -143,7 +159,9 @@ jobs:
143159
steps:
144160
- name: Log versions
145161
run: |
146-
echo "NPM: ${{ needs.publish_npm.outputs.ARTIFACT_VERSION }}"
162+
echo "NPM: ${NEEDS_PUBLISH_NPM_OUTPUTS_ARTIFACT_VERSION}"
163+
env:
164+
NEEDS_PUBLISH_NPM_OUTPUTS_ARTIFACT_VERSION: ${{ needs.publish_npm.outputs.ARTIFACT_VERSION }}
147165
- name: Add release notes
148166
if: ${{ needs.versioning.outputs.DRY_RUN == 'false' }}
149167
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout code
1212
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
13+
with:
14+
persist-credentials: false
1315
- name: Enable Corepack
1416
run: corepack enable
1517
- name: Yarn cache
@@ -34,6 +36,8 @@ jobs:
3436
runs-on: ubuntu-latest
3537
steps:
3638
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
39+
with:
40+
persist-credentials: false
3741
- name: Enable Corepack
3842
run: corepack enable
3943
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4

.github/workflows/zizmor.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: ["livekit", "full-mesh"]
6+
pull_request: {}
7+
8+
permissions: {}
9+
10+
jobs:
11+
zizmor:
12+
name: Run zizmor 🌈
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
persist-credentials: false
21+
22+
- name: Run zizmor 🌈
23+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"default_server_config": {
3+
"m.homeserver": {
4+
"base_url": "https://call-unstable.ems.host",
5+
"server_name": "call-unstable.ems.host"
6+
}
7+
},
8+
"ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
9+
"matrix_rtc_session": {
10+
"wait_for_key_rotation_ms": 3000,
11+
"membership_event_expiry_ms": 180000000,
12+
"delayed_leave_event_delay_ms": 18000,
13+
"delayed_leave_event_restart_ms": 4000,
14+
"network_error_retry_ms": 100
15+
}
16+
}

dev-backend-docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747
- ecbackend
4848

4949
livekit:
50-
image: livekit/livekit-server:v1.9.4
50+
image: livekit/livekit-server:v1.9.11
5151
pull_policy: always
5252
hostname: livekit-sfu
5353
command: --dev --config /etc/livekit.yaml
@@ -67,7 +67,7 @@ services:
6767
- ecbackend
6868

6969
livekit-1:
70-
image: livekit/livekit-server:v1.9.4
70+
image: livekit/livekit-server:v1.9.11
7171
pull_policy: always
7272
hostname: livekit-sfu-1
7373
command: --dev --config /etc/livekit.yaml
@@ -88,7 +88,7 @@ services:
8888

8989
synapse:
9090
hostname: homeserver
91-
image: ghcr.io/element-hq/synapse:pr-18968-dcb7678281bc02d4551043a6338fe5b7e6aa47ce
91+
image: ghcr.io/element-hq/synapse:latest
9292
pull_policy: always
9393
environment:
9494
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml
@@ -106,7 +106,7 @@ services:
106106

107107
synapse-1:
108108
hostname: homeserver-1
109-
image: ghcr.io/element-hq/synapse:pr-18968-dcb7678281bc02d4551043a6338fe5b7e6aa47ce
109+
image: ghcr.io/element-hq/synapse:latest
110110
pull_policy: always
111111
environment:
112112
- SYNAPSE_CONFIG_PATH=/data/cfg/homeserver.yaml

0 commit comments

Comments
 (0)