Skip to content

Add contents: write to publish CI workflow job permissions#377

Merged
tgxworld merged 1 commit intomainfrom
fix_publish_job
Feb 10, 2026
Merged

Add contents: write to publish CI workflow job permissions#377
tgxworld merged 1 commit intomainfrom
fix_publish_job

Conversation

@tgxworld
Copy link
Contributor

@tgxworld tgxworld commented Feb 10, 2026

Fixes the following error that is preventing the CI job from publishing
a new gem version.

Tagged v4.5.0.
Untagging v4.5.0 due to error.
rake aborted!
Running `git push origin refs/heads/main` failed with the following output:

remote: Permission to discourse/message_bus.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/discourse/message_bus/': The requested URL returned error: 403

https://github.com/discourse/message_bus/actions/runs/21851644099/job/63061276758

Fixes the following error that is preventing the CI job from publishing
a new gem version.

```
Tagged v4.5.0.
Untagging v4.5.0 due to error.
rake aborted!
Running `git push origin refs/heads/main` failed with the following output:

remote: Permission to discourse/message_bus.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/discourse/message_bus/': The requested URL returned error: 403
```

permissions:
id-token: write
contents: write
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Work with the contents of the repository. For example, contents: read permits an action to list the commits, and contents: write allows the action to create a release. For more information, see Permissions required for GitHub Apps.
--

Work with the contents of the repository. For example, contents: read permits an action to list the commits, and contents: write allows the action to create a release. For more information, see Permissions required for GitHub Apps.

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions

@tgxworld tgxworld merged commit a8e1e36 into main Feb 10, 2026
11 checks passed
@tgxworld tgxworld deleted the fix_publish_job branch February 10, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments