Skip to content

ci: drop rocksbot for collaborators list - #309

Merged
niemeyer merged 3 commits into
canonical:mainfrom
cjdcordeiro:enhance-release-security
Aug 7, 2026
Merged

niemeyer merged 3 commits into
canonical:mainfrom
cjdcordeiro:enhance-release-security

Conversation

@cjdcordeiro

Copy link
Copy Markdown
Collaborator
  • Have you signed the CLA?

This is a CI security enhancement.

In #284, we improved the security of the build CI workflow, ensuring the whole CI job wouldn't have unnecessary write permissions to the repository, instead shifting towards a fine grained personal token that would only be used within a single, conditional step that only ran on GitHub release events.

NEW: this PR goes one step further by removing the need to have a bot account (which owns the aforementioned fine grained personal token) with write permissions in the repository's collaborators list. Instead, this PR splits the privileged step into a separate privileged job. This means the new job can use the ephemeral GITHUB_TOKEN to perform the privileged step, without giving unnecessary privileges to other jobs&steps of the workflow.

closes #308

@cjdcordeiro
cjdcordeiro requested a review from upils July 8, 2026 09:29

@upils upils left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @cjdcordeiro! I have a couple of suggestions and questions but overall it seems to be safer, easier to maintain to more robust than the previous solution.

If we are happy with it we may want to do the same with the Security workflow.

Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved

@lczyk lczyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

afaict looks good.

Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
Comment thread .github/workflows/build.yml Resolved
cjdcordeiro and others added 2 commits July 14, 2026 11:00
Re-word the new CI job comments
@cjdcordeiro
cjdcordeiro requested a review from upils July 14, 2026 10:09

@upils upils left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @cjdcordeiro.

@upils upils added the Simple Nice for a quick look on a minute or two label Jul 15, 2026

@niemeyer niemeyer left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems cleaner, thanks. Hopefully it even works. :)

@niemeyer
niemeyer merged commit 97c0d1d into canonical:main Aug 7, 2026
19 checks passed
@ROCKsBot

ROCKsBot commented Aug 18, 2026 •

Copy link
Copy Markdown
Command Mean [s] Min [s] Max [s] Relative
BASE 14.764 ± 0.041 14.721 14.856 1.00
HEAD 14.922 ± 0.066 14.853 15.060 1.01 ± 0.01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Simple Nice for a quick look on a minute or two

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: improve github release process

5 participants