From bc7f5c7d3432d79bc77bec0aa95927c3532b0b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 20 Oct 2026 12:13:53 +0200 Subject: [PATCH 1/3] Change default branch name to `main` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de3ec533a..f97a8d2a0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ log A Rust library providing a lightweight logging *facade*. -[![Build status](https://img.shields.io/github/actions/workflow/status/rust-lang/log/main.yml?branch=master)](https://github.com/rust-lang/log/actions) +[![Build status](https://img.shields.io/github/actions/workflow/status/rust-lang/log/main.yml?branch=main)](https://github.com/rust-lang/log/actions) [![Latest version](https://img.shields.io/crates/v/log.svg)](https://crates.io/crates/log) [![Documentation](https://docs.rs/log/badge.svg)](https://docs.rs/log) ![License](https://img.shields.io/crates/l/log.svg) From e87a3c6b1a2b2ae8866da0d0d282e468a1fba40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Tue, 20 Oct 2026 12:14:21 +0200 Subject: [PATCH 2/3] Setup trusted publishing --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..423edc741 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish a release + +on: + push: + branches: + - main + +jobs: + publish: + name: Publish the log crate + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'rust-lang' }} + environment: publish + permissions: + pull-requests: write + contents: write + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false + - name: Install Rust + run: rustup update stable + - name: Run release-plz + uses: MarcoIeni/release-plz-action@6caa8d34f74d82b0dc76a18edd1cc3d6801c9baf # v0.5.143 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e7ed747e69f3e3d2400e33b4dc7767eadfbaf302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 28 Oct 2026 10:28:03 +0100 Subject: [PATCH 3/3] Fix Zizmor lints --- .github/workflows/publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 423edc741..301026e31 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,16 +5,18 @@ on: branches: - main +permissions: {} + jobs: publish: - name: Publish the log crate + name: Publish the log crate # zizmor: ignore[concurrency-limits] Can't risk skipping a release: https://release-plz.dev/docs/github/quickstart#concurrency runs-on: ubuntu-latest if: ${{ github.repository_owner == 'rust-lang' }} environment: publish permissions: - pull-requests: write - contents: write - id-token: write + pull-requests: write # Required for release-plz to open a PR + contents: write # Required for release-plz to create a branch for the PR + id-token: write # Required for trusted publishing OIDC steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1