Skip to content

Commit f42b270

Browse files
authored
Merge branch 'renovatebot:main' into fix/azure-url-encoding
2 parents f3bdc9f + d6ded07 commit f42b270

703 files changed

Lines changed: 16498 additions & 5061 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/containerbase/devcontainer:14.14.0
1+
FROM ghcr.io/containerbase/devcontainer:14.14.4

.github/actions/calculate-prefetch-matrix/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
- name: Calculate cache keys
2828
id: cache-keys
2929
env:
30-
HASH: ${{ hashFiles('pnpm-lock.yaml') }}
30+
HASH: ${{ hashFiles('pnpm-lock.yaml', 'package.json') }}
3131
shell: bash
3232
run: |
3333
echo 'MACOS_KEY=node_modules-macOS-${{ inputs.node-version }}-${{ env.HASH }}' >> "$GITHUB_ENV"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup Docker'
2-
description: ''
2+
description: 'Prepare Docker for multi-platform image builds, freeing disk space on low-capacity runners'
33

44
runs:
55
using: 'composite'

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ inputs:
1818
description: 'Save cache when needed'
1919
required: false
2020
default: 'false'
21+
use-cache:
22+
description: >-
23+
Set to `false` to skip restoring the `node_modules` and pnpm store caches, forcing a fresh `pnpm install --frozen-lockfile`. Use this in
24+
privileged jobs (e.g. release), so that they never execute cache contents.
25+
required: false
26+
default: 'true'
2127
runs:
2228
using: 'composite'
2329
steps:
@@ -53,6 +59,7 @@ runs:
5359
5460
- name: Restore `node_modules`
5561
id: node-modules-restore
62+
if: inputs.use-cache == 'true'
5663
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
5764
with:
5865
path: node_modules
@@ -67,7 +74,7 @@ runs:
6774
}}' >> "$GITHUB_ENV"
6875
6976
- name: Setup pnpm
70-
uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
77+
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
7178
with:
7279
install: false
7380
runtime: node@${{ inputs.node-version }}
@@ -78,7 +85,7 @@ runs:
7885
echo "PNPM_STORE=$(pnpm store path)" >> "$GITHUB_ENV"
7986
8087
- name: Cache and restore `pnpm store`
81-
if: env.CACHE_HIT != 'true'
88+
if: inputs.use-cache == 'true' && env.CACHE_HIT != 'true'
8289
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
8390
with:
8491
path: ${{ env.PNPM_STORE }}

.github/workflows/build.yml

Lines changed: 66 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ jobs:
297297
- name: Lint documentation
298298
run: pnpm lint-documentation
299299

300-
- name: Markdown lint
301-
run: pnpm markdown-lint
302-
303300
lint-other:
304301
needs:
305302
- setup-build
@@ -324,7 +321,9 @@ jobs:
324321
with:
325322
path: .cache/tsbuildinfo
326323
key: tsbuildinfo-${{ hashFiles('pnpm-lock.yaml') }}
327-
restore-keys: tsbuildinfo-${{ hashFiles('pnpm-lock.yaml') }}-
324+
restore-keys: |
325+
tsbuildinfo-${{ hashFiles('pnpm-lock.yaml') }}-
326+
tsbuildinfo-
328327
329328
- name: Type check
330329
run: pnpm type-check
@@ -349,8 +348,6 @@ jobs:
349348
run: pnpm lint-other
350349

351350
lint-actions:
352-
needs:
353-
- setup-build
354351
runs-on: ubuntu-latest
355352
timeout-minutes: 7
356353
permissions:
@@ -362,7 +359,9 @@ jobs:
362359
with:
363360
persist-credentials: false
364361
show-progress: false
365-
sparse-checkout: .github/workflows
362+
# include local composite actions, so that actionlint validates
363+
# their metadata, and zizmor audits them
364+
sparse-checkout: .github/
366365

367366
- name: Check workflow files
368367
uses: docker://rhysd/actionlint:1.7.12@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
@@ -410,16 +409,27 @@ jobs:
410409
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
411410
with:
412411
path: .cache/vitest
412+
# the shard cache key comes before the lockfile hash so that
413+
# `restore-keys` can fall back to the same shard's cache after
414+
# a lockfile change
413415
key: |
414416
vitest-cache-${{
415417
runner.os
416418
}}-${{
417419
env.NODE_VERSION
420+
}}-${{
421+
matrix.cache-key
418422
}}-${{
419423
hashFiles('pnpm-lock.yaml')
424+
}}
425+
restore-keys: |
426+
vitest-cache-${{
427+
runner.os
428+
}}-${{
429+
env.NODE_VERSION
420430
}}-${{
421431
matrix.cache-key
422-
}}
432+
}}-
423433
424434
- name: Unit tests
425435
shell: bash
@@ -491,7 +501,7 @@ jobs:
491501
with:
492502
use_oidc: true
493503
directory: coverage/lcov
494-
fail_ci_if_error: github.event_name != 'pull_request'
504+
fail_ci_if_error: ${{ github.event_name != 'pull_request' }}
495505
verbose: true
496506

497507
coverage-threshold:
@@ -545,6 +555,10 @@ jobs:
545555
- codecov
546556
- coverage-threshold
547557
- lint-actions
558+
- lint-docs
559+
- lint-other
560+
- lint-oxlint
561+
- lint-prettier
548562
- build-docker
549563
- build-docs
550564
runs-on: ubuntu-latest
@@ -603,6 +617,30 @@ jobs:
603617
needs.lint-actions.result == 'skipped'
604618
run: exit 1
605619

620+
- name: Fail for failed or cancelled linting
621+
if: |
622+
needs.lint-docs.result == 'failure' ||
623+
needs.lint-docs.result == 'cancelled' ||
624+
needs.lint-other.result == 'failure' ||
625+
needs.lint-other.result == 'cancelled' ||
626+
needs.lint-oxlint.result == 'failure' ||
627+
needs.lint-oxlint.result == 'cancelled' ||
628+
needs.lint-prettier.result == 'failure' ||
629+
needs.lint-prettier.result == 'cancelled'
630+
run: exit 1
631+
632+
- name: Fail for skipped linting when PR is ready for review
633+
if: |
634+
github.event_name == 'pull_request' &&
635+
github.event.pull_request.draft != true &&
636+
(
637+
needs.lint-docs.result == 'skipped' ||
638+
needs.lint-other.result == 'skipped' ||
639+
needs.lint-oxlint.result == 'skipped' ||
640+
needs.lint-prettier.result == 'skipped'
641+
)
642+
run: exit 1
643+
606644
- name: Fail for failed or cancelled docs build
607645
if: |
608646
needs.build-docs.result == 'failure' ||
@@ -701,7 +739,6 @@ jobs:
701739

702740
build-docs:
703741
needs:
704-
- lint-docs
705742
- setup-build
706743
runs-on: ubuntu-latest
707744
timeout-minutes: 5
@@ -722,7 +759,7 @@ jobs:
722759
- name: Setup uv
723760
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
724761
with:
725-
version: 0.12.3
762+
version: 0.12.7
726763
enable-cache: true
727764
cache-python: true
728765

@@ -845,32 +882,43 @@ jobs:
845882
with:
846883
node-version: ${{ needs.setup-build.outputs.node-version }}
847884
os: ${{ runner.os }}
885+
# ensure that the release job installs fresh, with installed pacakges verified against the lockfile's integrity hashes
886+
use-cache: false
848887

849888
- name: Install newer npm if needed
850889
run: 'dpkg --compare-versions "$(npm -v)" lt 11.5.1 && (npm update -g npm; echo "updated npm to: $(npm -v)") || echo "npm is new enough: $(npm -v)"'
851890

852891
- uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
853892

854893
- name: Docker registry login
894+
env:
895+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
896+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
897+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
898+
REPOSITORY_OWNER: ${{ github.repository_owner }}
855899
run: |
856-
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
857-
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
900+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
901+
echo "$GITHUB_TOKEN" | docker login ghcr.io -u "$REPOSITORY_OWNER" --password-stdin
858902
859903
- name: Setup uv
860904
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
861905
with:
862-
version: 0.12.3
863-
enable-cache: true
906+
version: 0.12.7
907+
# ensure that the release job installs fresh, with installed pacakges verified against the lockfile's integrity hashes
908+
enable-cache: false
864909
cache-python: true
865910

866911
- name: Install uv dependencies
867912
run: uv sync --locked
868913

869914
- name: Check dry run
915+
env:
916+
EVENT_NAME: ${{ github.event_name }}
917+
INPUT_DRY_RUN: ${{ github.event.inputs.dryRun }}
870918
run: |
871-
if [[ "${{github.event_name}}" == "workflow_dispatch" && "${{ github.event.inputs.dryRun }}" != "true" ]]; then
919+
if [[ "$EVENT_NAME" == "workflow_dispatch" && "$INPUT_DRY_RUN" != "true" ]]; then
872920
echo "DRY_RUN=false" >> "$GITHUB_ENV"
873-
elif [[ "${{env.DO_RELEASE}}" == "true" ]]; then
921+
elif [[ "$DO_RELEASE" == "true" ]]; then
874922
echo "DRY_RUN=false" >> "$GITHUB_ENV"
875923
fi
876924
@@ -891,7 +939,7 @@ jobs:
891939
892940
- name: semantic-release
893941
run: |
894-
pnpm semantic-release --dry-run ${{env.DRY_RUN}}
942+
pnpm semantic-release --dry-run "$DRY_RUN"
895943
env:
896944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
897945
LOG_LEVEL: debug

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
45+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
4646
with:
4747
languages: javascript
4848

@@ -52,7 +52,7 @@ jobs:
5252
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5353
# If this step fails, then you should remove it and run the build manually (see below)
5454
- name: Autobuild
55-
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
55+
uses: github/codeql-action/autobuild@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
5656

5757
# ℹ️ Command-line programs to run using the OS shell.
5858
# 📚 https://git.io/JvXDl
@@ -66,4 +66,4 @@ jobs:
6666
# make release
6767

6868
- name: Perform CodeQL Analysis
69-
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
69+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Label PRs dequeued from the merge queue'
2+
3+
on:
4+
schedule:
5+
# Run every 15 minutes
6+
- cron: '*/15 * * * *'
7+
# Or when manually requested
8+
workflow_dispatch: {}
9+
10+
permissions: {}
11+
12+
jobs:
13+
label-dequeued-prs:
14+
runs-on: ubuntu-slim
15+
if: github.repository == 'renovatebot/renovate'
16+
17+
permissions:
18+
pull-requests: write
19+
20+
env:
21+
GH_TOKEN: ${{ github.token }}
22+
23+
steps:
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
27+
28+
- name: Find and label PRs dequeued from the merge queue
29+
run: bash ./tools/find-dequeued-merge-queue-prs.sh

.github/workflows/mend-slack.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
steps:
1717
- name: Calculate time ago
1818
id: timeago
19+
env:
20+
CREATED_AT: ${{ github.event.discussion.created_at }}
1921
run: |
20-
created_at="${{ github.event.discussion.created_at }}"
22+
created_at="$CREATED_AT"
2123
created_epoch=$(date -d "$created_at" "+%s")
2224
now_epoch=$(date +%s)
2325
diff=$((now_epoch - created_epoch))

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ jobs:
5252

5353
# Upload the results to GitHub's code scanning dashboard.
5454
- name: 'Upload to code-scanning'
55-
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
55+
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
5656
with:
5757
sarif_file: results.sarif

.github/workflows/update-data.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
show-progress: false
2424

2525
- name: Setup pnpm
26-
uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2.0.2
26+
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
2727
with:
2828
install: false
2929
runtime: node@${{ env.NODE_VERSION }}
@@ -32,7 +32,7 @@ jobs:
3232
run: pnpm install --frozen-lockfile
3333

3434
- name: Install mise
35-
uses: jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5
35+
uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
3636
with:
3737
# don't run `mise install`, but do install a version of `mise` itself
3838
install: false

0 commit comments

Comments
 (0)