Skip to content

ci: let the tests comment job check out the repository - #26425

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
germanocaumo:u40d/ci/publish-results-contents-read
Nov 6, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
germanocaumo:u40d/ci/publish-results-contents-read

Conversation

@germanocaumo

@germanocaumo germanocaumo commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds contents: read to the permissions of the comment-pr job in automated-tests-publish-results.yml.

Closes Issue(s)

None.

Motivation

comment-pr declares its own permissions, which removes every one it doesn't list from the token, contents included. Its first step checks out the repository, because the next one uses the local check-artifact-exists action.

A public repository allows that checkout anyway, but a private one, such as a private fork, refuses it with Repository not found. The results comment is then never posted, and the workflow fails on every pull request. The file's other job, publish-test-results, already declares contents: read.

How to test

On a private repository, a job with comment-pr's permissions fails actions/checkout with Repository not found; the same job with contents: read added checks out and finds .github/actions/check-artifact-exists.

On this repository nothing changes, since public repositories allow the checkout anyway.

More

  • Added/updated documentation

comment-pr sets its own permissions without contents: read, which
removes it from the token. Its first step checks out the repository
(for the local check-artifact-exists action), which a public repository
allows anyway, but a private one, e.g. a fork, refuses with
"Repository not found": the results comment is never posted and the
workflow fails on every pull request.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The comment-pr job in the automated test results workflow now grants contents: read permission in addition to its existing permissions.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: prlanzarin

Merge Risk: Minimal · up to 6aa06

The permission update supports repository checkout without granting content-write access. No actionable merge-blocking issue is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly describes the main change: allowing the tests comment job to check out the repository.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description directly explains the addition of contents: read permission to the comment-pr job and its purpose for private repository checkouts.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 74208404-853e-42ed-8eab-239ddd31c384
Commits

Reviewing files that changed from the base of the PR and between 70c6fcf and 6aa0649.

Files selected for processing: 1

  • .github/workflows/automated-tests-publish-results.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary added this to the Release 4.0 milestone Nov 6, 2026
@antobinary
antobinary merged commit db7f347 into bigbluebutton:v4.0.x-develop Nov 6, 2026
33 checks passed
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.

2 participants