From e5da9f39ab355aaf2346f264da25c11c10f5b369 Mon Sep 17 00:00:00 2001 From: PastaClaw Date: Wed, 25 Feb 2026 04:41:50 -0600 Subject: [PATCH] ci(swift-sdk): add write permissions for PR comment step The Swift SDK build workflow's post-build step posts a PR comment with artifact/xcframework info using actions/github-script, which calls github.rest.issues.createComment. This requires issues: write and pull-requests: write permissions. Without explicit permissions, the workflow inherits the repository default (read-only), causing the comment step to fail with 403: 'Resource not accessible by integration'. This marks the entire CI check as failed even though the actual build succeeded. Add workflow-level permissions block with: - contents: read (required for checkout) - pull-requests: write (required for PR interaction) - issues: write (required for issues.createComment/updateComment API) Fixes the failing check on PR #3137. --- .github/workflows/swift-sdk-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/swift-sdk-build.yml b/.github/workflows/swift-sdk-build.yml index 1a7414693f0..16e9f48c008 100644 --- a/.github/workflows/swift-sdk-build.yml +++ b/.github/workflows/swift-sdk-build.yml @@ -13,6 +13,11 @@ on: - 'packages/rs-*/**' - '.github/workflows/swift-sdk-build.yml' +permissions: + contents: read + pull-requests: write + issues: write + jobs: swift-sdk-build: name: Swift SDK and Example build (warnings as errors)