Skip to content

ci: update tag and publish with write perms for git push#509

Open
blackboxsw wants to merge 1 commit into
canonical:mainfrom
blackboxsw:ci-provide-write-perms-to-tag-and-publish
Open

ci: update tag and publish with write perms for git push#509
blackboxsw wants to merge 1 commit into
canonical:mainfrom
blackboxsw:ci-provide-write-perms-to-tag-and-publish

Conversation

@blackboxsw

@blackboxsw blackboxsw commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Fix ability to push new VERSION tag to upstream upon merge to main.
Limit write permissions to just the tag-release job.

Additional Context and Relevant Issues

Without this fix, pycloudlib version tags will not be automatically pushed to upstream repo.

Automated job for publication of version tags to upstream are automatically blocked without explicit write permissions as seen in this CI run

remote: Permission to canonical/pycloudlib.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/canonical/pycloudlib/': The requested URL returned error: 403
Error: Process completed with exit code 128.

Add specific write permissions to ensure the job has the ability to push a version tag to upstream after a merge into main.
Not a significant security concern from external contributors because the job is limited to only run once approved and merged by a maintainer.

on:
  push:
    branches:
      - main

Test Steps

Fix ability to push new VERSION tag to upstream upon merge to main.
Limit write permissions to just the tag-release job.
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.

1 participant