Skip to content

Fixup GHA token permission for releasing - #48

Merged
ps-jay merged 1 commit into
mainfrom
ps-jay-patch-1
Mar 3, 2026
Merged

ps-jay merged 1 commit into
mainfrom
ps-jay-patch-1

Conversation

@ps-jay

@ps-jay ps-jay commented Mar 3, 2026 •

Copy link
Copy Markdown
Member

Hoping to fix this error:

  Attempting to create or update release tag "1.13.0"
  Could not create new tag "refs/tags/1.13.0" (Resource not accessible by integration) therefore updating existing tag "tags/1.13.0"
  Error: Resource not accessible by integration

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the “Test and Release” GitHub Actions workflow to allow the release job to write repository contents (needed for creating tags/releases) by adjusting the GITHUB_TOKEN permissions.

Changes:

  • Add an explicit job-level permissions block to the release job.
  • Grant contents: write for the release job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- build
runs-on: ubuntu-latest
permissions:
contents: write

Copilot AI Mar 3, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting a job-level permissions block overrides the default token permissions for all scopes. Since this job uses actions/download-artifact, it typically needs actions: read to fetch artifacts; with only contents: write, the step can fail with 403. Consider explicitly adding actions: read (and any other required scopes) alongside contents: write so the release job can still download artifacts.

Suggested change
contents: write
contents: write
actions: read

Copilot uses AI. Check for mistakes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ps-jay
ps-jay enabled auto-merge March 3, 2026 05:28
@ps-jay
ps-jay disabled auto-merge March 3, 2026 05:48
@ps-jay
ps-jay merged commit df9b1fe into main Mar 3, 2026
7 checks passed
@ps-jay
ps-jay deleted the ps-jay-patch-1 branch March 3, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants