Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/dependency-maintenance.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"name": "syn",
"current": "2.0.119",
"latest": "3.0.10",
"reason": "match-lookup 0.1.3, multihash-derive-impl 0.1.3 and zerocopy-derive 0.8.63 require syn 2.x. Syn 3 is already selected for compatible parents; revisit after remaining parents migrate.",
"reason": "match-lookup 0.1.3, multihash-derive-impl 0.1.3 and zerocopy-derive 0.8.64 require syn 2.x. Syn 3 is already selected for compatible parents; revisit after remaining parents migrate.",
"expires": "2026-12-20"
},
{
Expand Down Expand Up @@ -124,7 +124,7 @@
"name": "syn",
"current": "2.0.119",
"latest": "3.0.10",
"reason": "match-lookup 0.1.3, multihash-derive-impl 0.1.3 and zerocopy-derive 0.8.63 require syn 2.x. Syn 3 is already selected for compatible parents; revisit after remaining parents migrate.",
"reason": "match-lookup 0.1.3, multihash-derive-impl 0.1.3 and zerocopy-derive 0.8.64 require syn 2.x. Syn 3 is already selected for compatible parents; revisit after remaining parents migrate.",
"expires": "2026-12-20"
},
{
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- name: Install ShellCheck
if: matrix.os == 'ubuntu-24.04'
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: shellcheck@0.11.0

Expand Down Expand Up @@ -103,15 +103,15 @@ jobs:
cache-bin: false

- name: Install nextest
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6, nextest
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7, nextest
with:
tool: cargo-nextest@0.9.152

- name: Install cargo-deny
run: cargo +1.100.0 install cargo-deny --version '=0.22.0' --locked

- name: Install cargo-audit
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6, cargo-audit
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7, cargo-audit
with:
tool: cargo-audit@0.23.0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
java-version: '21'

- name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand All @@ -79,6 +79,6 @@ jobs:
packages/kotlin/gradlew -p packages/kotlin-android --no-daemon --no-build-cache --rerun-tasks compileReleaseKotlin compileReleaseJavaWithJavac :consumer-r8-runtime:compileReleaseJavaWithJavac

- name: Analyze CodeQL
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4
with:
category: /language:${{ matrix.language }}
4 changes: 2 additions & 2 deletions .github/workflows/crates-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: cargo-audit@0.23.0
fallback: none
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
toolchain: 1.100.0

- name: Install cargo-audit
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6, cargo-audit
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7, cargo-audit
with:
tool: cargo-audit@0.23.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kotlin-android-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: cargo-audit@0.23.0
fallback: none
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: cargo-audit@0.23.0
fallback: none
Expand Down Expand Up @@ -166,12 +166,12 @@ jobs:
targets: wasm32-unknown-unknown

- name: Install wasm-pack
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6, wasm-pack
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7, wasm-pack
with:
tool: wasm-pack@0.15.1

- name: Install wasm-bindgen-cli
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6, wasm-bindgen-cli
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7, wasm-bindgen-cli
with:
tool: wasm-bindgen-cli@0.2.130

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-readiness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ jobs:
java-version: '21'

- name: Install wasm-pack
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: wasm-pack@0.15.1

- name: Install wasm-bindgen-cli
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: wasm-bindgen-cli@0.2.130

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/swift-package-preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
toolchain: 1.100.0

- name: Install dependency maintenance tools
uses: taiki-e/install-action@75a7c0f87bd666af3cdb75c5b9e9d03ab6044e6f # v2.90.6
uses: taiki-e/install-action@25f51f6b1bf4e18876107cece836f4f77ac17c8c # v2.90.7
with:
tool: cargo-audit@0.23.0
fallback: none
Expand Down
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 23 additions & 7 deletions scripts/promote_maven_publications.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: MIT OR Apache-2.0

set -euo pipefail
set +x
umask 077

fail() {
Expand All @@ -15,10 +16,22 @@ if [[ $# != 3 || "$1" != /* || ! "$2" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[
fail 'expected an absolute package directory, stable version, and full source SHA'
fi

# Keep credentials local until the individual signing or upload operation.
export -n signing_key signing_password portal_username portal_password
: "${MAVEN_SIGNING_KEY:?Maven signing key required}"
: "${MAVEN_SIGNING_PASSWORD:?Maven signing passphrase required}"
: "${CENTRAL_PORTAL_USERNAME:?Maven Central username required}"
: "${CENTRAL_PORTAL_PASSWORD:?Maven Central password required}"
signing_key="$MAVEN_SIGNING_KEY"
signing_password="$MAVEN_SIGNING_PASSWORD"
readonly portal_username="$CENTRAL_PORTAL_USERNAME" portal_password="$CENTRAL_PORTAL_PASSWORD"
unset MAVEN_SIGNING_KEY MAVEN_SIGNING_PASSWORD CENTRAL_PORTAL_USERNAME CENTRAL_PORTAL_PASSWORD

readonly packages="$1" version="$2" source_sha="$3"
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
work_dir="$(mktemp -d)"
readonly script_dir work_dir
cd -- "$script_dir/.."
export GNUPGHOME="$work_dir/gnupg"

cleanup() {
Expand All @@ -32,12 +45,12 @@ readonly bundle="$work_dir/bundle"
mkdir -p "$bundle"

node "$script_dir/stage_maven_publications.mjs" "$packages" "$version" "$source_sha" "$bundle"
node "$script_dir/run_pinned_release_readiness.mjs" --check-pins
node "$script_dir/../.release-readiness/scripts/repository-privacy.mjs" --artifact "$bundle"

: "${MAVEN_SIGNING_KEY:?Maven signing key required}"
: "${MAVEN_SIGNING_PASSWORD:?Maven signing passphrase required}"
printf '%s\n' "$MAVEN_SIGNING_KEY" | gpg --batch --import >/dev/null 2>&1 ||
gpg --batch --import >/dev/null 2>&1 <<<"$signing_key" ||
fail 'could not import the Maven signing key'
unset MAVEN_SIGNING_KEY
unset signing_key
# The isolated keyring must contain exactly one signing identity.
fingerprints="$(gpg --batch --with-colons --list-secret-keys |
awk -F: '$1 == "sec" { primary = 1; next } primary && $1 == "fpr" { print $10; primary = 0 }')"
Expand All @@ -46,15 +59,18 @@ fingerprints="$(gpg --batch --with-colons --list-secret-keys |
shopt -s nullglob
for file in "$bundle"/me/really/*/"$version"/*; do
gpg --batch --pinentry-mode loopback --passphrase-fd 0 --local-user "$fingerprints" \
--armor --detach-sign --output "$file.asc" "$file" <<<"$MAVEN_SIGNING_PASSWORD"
--armor --detach-sign --output "$file.asc" "$file" <<<"$signing_password"
gpg --batch --no-tty --no-auto-key-retrieve --verify "$file.asc" "$file" >/dev/null 2>&1
for signed_file in "$file" "$file.asc"; do
for algorithm in md5 sha1 sha256 sha512; do
"${algorithm}sum" -- "$signed_file" | cut -d ' ' -f 1 >"$signed_file.$algorithm"
done
done
done
unset MAVEN_SIGNING_PASSWORD
unset signing_password

readonly archive="$work_dir/reallyme-maven-central-$version.zip"
(cd "$bundle" && zip -X -q -r "$archive" me)
node "$script_dir/upload_maven_central_bundle.mjs" "$archive" "$version"
node "$script_dir/../.release-readiness/scripts/repository-privacy.mjs" --artifact "$archive"
CENTRAL_PORTAL_USERNAME="$portal_username" CENTRAL_PORTAL_PASSWORD="$portal_password" \
node "$script_dir/upload_maven_central_bundle.mjs" "$archive" "$version"
Loading
Loading