From f52249c2921463d490f0ae0eaf57118f036c632c Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 14 Jun 2025 16:53:06 +0900 Subject: [PATCH] Fix GitHub Actions permissions for release creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add contents: write permission for private repository - Remove Windows zip file references - Simplify artifact upload paths - Fix release workflow permissions for private repos 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5957938..cf1e832 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,10 @@ on: required: true default: 'v0.1.0' +permissions: + contents: write + actions: read + env: CARGO_TERM_COLOR: always OPENSSL_STATIC: true @@ -103,14 +107,15 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ matrix.asset_name }} - path: | - ${{ matrix.asset_name }}.tar.gz - ${{ matrix.asset_name }}.zip + path: ${{ matrix.asset_name }}.tar.gz release: name: Create Release needs: build runs-on: ubuntu-latest + permissions: + contents: write + actions: read steps: - uses: actions/checkout@v4 @@ -159,8 +164,6 @@ jobs: body_path: release_notes.md draft: false prerelease: ${{ contains(steps.tag_name.outputs.tag, 'alpha') || contains(steps.tag_name.outputs.tag, 'beta') || contains(steps.tag_name.outputs.tag, 'rc') }} - files: | - artifacts/*/ailog-*.tar.gz - artifacts/*/ailog-*.zip + files: artifacts/*/ailog-*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file