Skip to content

Commit 9568a3f

Browse files
Merge branch 'main' into nt--remove-otp-requirement-for-enabling-webauthn
2 parents f2a2d73 + 4d2a148 commit 9568a3f

1,657 files changed

Lines changed: 56598 additions & 22578 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.

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# For details, see https://github.com/devcontainers/images/tree/main/src/ruby
2-
FROM mcr.microsoft.com/devcontainers/ruby:1-3.3-bookworm
2+
FROM mcr.microsoft.com/devcontainers/ruby:3.4-trixie
33

44
# Install node version from .nvmrc
55
WORKDIR /app
@@ -9,7 +9,7 @@ RUN /bin/bash --login -i -c "nvm install"
99
# Install additional OS packages
1010
RUN apt-get update && \
1111
export DEBIAN_FRONTEND=noninteractive && \
12-
apt-get -y install --no-install-recommends libicu-dev libidn11-dev ffmpeg imagemagick libvips42 libpam-dev
12+
apt-get -y install --no-install-recommends libicu-dev libidn11-dev ffmpeg libvips42 libpam-dev
1313

1414
# Disable download prompt for Corepack
1515
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0

.devcontainer/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ services:
7373
hard: -1
7474

7575
libretranslate:
76-
image: libretranslate/libretranslate:v1.6.2
76+
image: libretranslate/libretranslate:v1.7.3
7777
restart: unless-stopped
7878
volumes:
7979
- lt-data:/home/libretranslate/.local

.env.production.sample

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,3 @@ S3_ALIAS_HOST=files.example.com
8888
# -----------------------
8989
IP_RETENTION_PERIOD=31556952
9090
SESSION_RETENTION_PERIOD=31556952
91-
92-
# Fetch All Replies Behavior
93-
# --------------------------
94-
95-
# Period to wait between fetching replies (in minutes)
96-
FETCH_REPLIES_COOLDOWN_MINUTES=15
97-
98-
# Period to wait after a post is first created before fetching its replies (in minutes)
99-
FETCH_REPLIES_INITIAL_WAIT_MINUTES=5
100-
101-
# Max number of replies to fetch - total, recursively through a whole reply tree
102-
FETCH_REPLIES_MAX_GLOBAL=1000
103-
104-
# Max number of replies to fetch - for a single post
105-
FETCH_REPLIES_MAX_SINGLE=500
106-
107-
# Max number of replies Collection pages to fetch - total
108-
FETCH_REPLIES_MAX_PAGES=500

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
using: 'composite'
1010
steps:
1111
- name: Set up Node.js
12-
uses: actions/setup-node@v4
12+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
1313
with:
1414
node-version-file: '.nvmrc'
1515

@@ -23,7 +23,7 @@ runs:
2323
shell: bash
2424
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
2525

26-
- uses: actions/cache@v4
26+
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
2727
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2828
with:
2929
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
sudo apt-get install -y libicu-dev libidn11-dev libvips42 ${{ inputs.additional-system-dependencies }}
1818
1919
- name: Set up Ruby
20-
uses: ruby/setup-ruby@v1
20+
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1
2121
with:
2222
ruby-version: ${{ inputs.ruby-version }}
2323
bundler-cache: true

.github/renovate.json5

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
'customManagers:dockerfileVersions',
66
':labels(dependencies)',
77
':prConcurrentLimitNone', // Remove limit for open PRs at any time.
8-
':prHourlyLimit2', // Rate limit PR creation to a maximum of two per hour.
98
':enableVulnerabilityAlertsWithLabel(security)',
109
],
1110
rebaseWhen: 'conflicted',
@@ -23,8 +22,6 @@
2322
// Require Dependency Dashboard Approval for major version bumps of these node packages
2423
matchManagers: ['npm'],
2524
matchPackageNames: [
26-
'tesseract.js', // Requires code changes
27-
2825
// react-router: Requires manual upgrade
2926
'history',
3027
'react-router-dom',
@@ -116,6 +113,7 @@
116113
],
117114
matchUpdateTypes: ['major'],
118115
groupName: 'artifact actions (major)',
116+
extends: ['helpers:pinGitHubActionDigests'],
119117
},
120118
{
121119
// Update @types/* packages every week, with one grouped PR
@@ -156,9 +154,15 @@
156154
groupName: 'opentelemetry-ruby (non-major)',
157155
},
158156
{
159-
// Group Playwright Ruby & JS deps in the same PR, as they need to be in sync
160-
matchManagers: ['bundler', 'npm'],
161-
matchPackageNames: ['playwright-ruby-client', 'playwright'],
157+
// The ruby portion of the Playwright group
158+
matchManagers: ['bundler'],
159+
matchPackageNames: ['playwright-ruby-client'],
160+
groupName: 'Playwright',
161+
},
162+
{
163+
// The node portion of the Playwright group
164+
matchManagers: ['npm'],
165+
matchPackageNames: ['playwright'],
162166
groupName: 'Playwright',
163167
},
164168
// Add labels depending on package manager

.github/workflows/build-container-image.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- linux/arm64
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3939

4040
- name: Prepare
4141
env:
@@ -47,27 +47,27 @@ jobs:
4747
image_names=${PUSH_TO_IMAGES//$'\n'/,}
4848
echo "IMAGE_NAMES=${image_names%,}" >> $GITHUB_ENV
4949
50-
- uses: docker/setup-buildx-action@v3
50+
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
5151
id: buildx
5252

5353
- name: Log in to Docker Hub
5454
if: contains(inputs.push_to_images, 'tootsuite')
55-
uses: docker/login-action@v3
55+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
5656
with:
5757
username: ${{ secrets.DOCKERHUB_USERNAME }}
5858
password: ${{ secrets.DOCKERHUB_TOKEN }}
5959

6060
- name: Log in to the GitHub Container registry
6161
if: contains(inputs.push_to_images, 'ghcr.io')
62-
uses: docker/login-action@v3
62+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
6363
with:
6464
registry: ghcr.io
6565
username: ${{ github.actor }}
6666
password: ${{ secrets.GITHUB_TOKEN }}
6767

6868
- name: Docker meta
6969
id: meta
70-
uses: docker/metadata-action@v5
70+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
7171
if: ${{ inputs.push_to_images != '' }}
7272
with:
7373
images: ${{ inputs.push_to_images }}
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Build and push by digest
7878
id: build
79-
uses: docker/build-push-action@v6
79+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
8080
with:
8181
context: .
8282
file: ${{ inputs.file_to_build }}
@@ -100,7 +100,7 @@ jobs:
100100
101101
- name: Upload digest
102102
if: ${{ inputs.push_to_images != '' }}
103-
uses: actions/upload-artifact@v4
103+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
104104
with:
105105
# `hashFiles` is used to disambiguate between streaming and non-streaming images
106106
name: digests-${{ hashFiles(inputs.file_to_build) }}-${{ env.PLATFORM_PAIR }}
@@ -119,10 +119,10 @@ jobs:
119119
PUSH_TO_IMAGES: ${{ inputs.push_to_images }}
120120

121121
steps:
122-
- uses: actions/checkout@v4
122+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
123123

124124
- name: Download digests
125-
uses: actions/download-artifact@v4
125+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
126126
with:
127127
path: ${{ runner.temp }}/digests
128128
# `hashFiles` is used to disambiguate between streaming and non-streaming images
@@ -131,25 +131,25 @@ jobs:
131131

132132
- name: Log in to Docker Hub
133133
if: contains(inputs.push_to_images, 'tootsuite')
134-
uses: docker/login-action@v3
134+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
135135
with:
136136
username: ${{ secrets.DOCKERHUB_USERNAME }}
137137
password: ${{ secrets.DOCKERHUB_TOKEN }}
138138

139139
- name: Log in to the GitHub Container registry
140140
if: contains(inputs.push_to_images, 'ghcr.io')
141-
uses: docker/login-action@v3
141+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
142142
with:
143143
registry: ghcr.io
144144
username: ${{ github.actor }}
145145
password: ${{ secrets.GITHUB_TOKEN }}
146146

147147
- name: Set up Docker Buildx
148-
uses: docker/setup-buildx-action@v3
148+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
149149

150150
- name: Docker meta
151151
id: meta
152-
uses: docker/metadata-action@v5
152+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
153153
if: ${{ inputs.push_to_images != '' }}
154154
with:
155155
images: ${{ inputs.push_to_images }}

.github/workflows/build-push-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
# Repository needs to be cloned so `git rev-parse` below works
2020
- name: Clone repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222
- id: version_vars
2323
run: |
2424
echo mastodon_version_metadata=pr-${{ github.event.pull_request.number }}-$(git rev-parse --short ${{github.event.pull_request.head.sha}}) >> $GITHUB_OUTPUT

.github/workflows/build-releases.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,44 @@ permissions:
99
packages: write
1010

1111
jobs:
12+
check-latest-stable:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
latest: ${{ steps.check.outputs.is_latest_stable }}
16+
steps:
17+
# Repository needs to be cloned to list branches
18+
- name: Clone repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Check latest stable
24+
shell: bash
25+
id: check
26+
run: |
27+
ref="${GITHUB_REF#refs/tags/}"
28+
29+
if [[ "$ref" =~ ^v([0-9]+)\.([0-9]+)(\.[0-9]+)?$ ]]; then
30+
current="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}"
31+
else
32+
echo "tag $ref is not semver"
33+
echo "is_latest_stable=false" >> "$GITHUB_OUTPUT"
34+
exit 0
35+
fi
36+
37+
latest=$(git for-each-ref --format='%(refname:short)' "refs/remotes/origin/stable-*.*" \
38+
| sed -E 's#^origin/stable-##' \
39+
| sort -Vr \
40+
| head -n1)
41+
42+
if [[ "$current" == "$latest" ]]; then
43+
echo "is_latest_stable=true" >> "$GITHUB_OUTPUT"
44+
else
45+
echo "is_latest_stable=false" >> "$GITHUB_OUTPUT"
46+
fi
47+
1248
build-image:
49+
needs: check-latest-stable
1350
uses: ./.github/workflows/build-container-image.yml
1451
with:
1552
file_to_build: Dockerfile
@@ -21,13 +58,14 @@ jobs:
2158
# Only tag with latest when ran against the latest stable branch
2259
# This needs to be updated after each minor version release
2360
flavor: |
24-
latest=${{ startsWith(github.ref, 'refs/tags/v4.3.') }}
61+
latest=${{ needs.check-latest-stable.outputs.latest }}
2562
tags: |
2663
type=pep440,pattern={{raw}}
2764
type=pep440,pattern=v{{major}}.{{minor}}
2865
secrets: inherit
2966

3067
build-image-streaming:
68+
needs: check-latest-stable
3169
uses: ./.github/workflows/build-container-image.yml
3270
with:
3371
file_to_build: streaming/Dockerfile
@@ -39,7 +77,7 @@ jobs:
3977
# Only tag with latest when ran against the latest stable branch
4078
# This needs to be updated after each minor version release
4179
flavor: |
42-
latest=${{ startsWith(github.ref, 'refs/tags/v4.3.') }}
80+
latest=${{ needs.check-latest-stable.outputs.latest }}
4381
tags: |
4482
type=pep440,pattern={{raw}}
4583
type=pep440,pattern=v{{major}}.{{minor}}

.github/workflows/bundler-audit.yml

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

2929
steps:
3030
- name: Clone repository
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232

3333
- name: Set up Ruby
34-
uses: ruby/setup-ruby@v1
34+
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1
3535
with:
3636
bundler-cache: true
3737

0 commit comments

Comments
 (0)