From f5154590758c69edcd8a2a8bbbeede3f3441922f Mon Sep 17 00:00:00 2001 From: Yun Wang Date: Tue, 11 Aug 2026 10:42:41 +0200 Subject: [PATCH] fix(ci): grant contents write to the release workflow The release job creates the tag and the GitHub release, which needs contents: write. The workflow got contents: read in #261, so the 1.46.0 release failed with 403 after the package was already published. --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 597ce8ee..292de4b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,8 @@ on: - main permissions: - contents: read + # write is needed to create the tag and the GitHub release + contents: write pull-requests: read jobs: