Skip to content

Conversation

@mdelapenya
Copy link
Member

What does this PR do?

Add the pull-request permissions scope to the GH token for the usage-metrics workflow.

Why is it important?

Allow sending PRs from the build

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner November 25, 2025 13:40
@mdelapenya mdelapenya added the github_actions Pull requests that update GitHub Actions code label Nov 25, 2025
@mdelapenya mdelapenya self-assigned this Nov 25, 2025
@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 0b5b132
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-go/deploys/6925b1db753eae000884fdbe
😎 Deploy Preview https://deploy-preview-3503--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link

coderabbitai bot commented Nov 25, 2025

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow permissions for internal processes. No user-facing changes.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

A GitHub Actions workflow permission was extended by adding pull-requests: write to the usage-metrics workflow, supplementing the existing contents: write permission. No functionality changes.

Changes

Cohort / File(s) Summary
GitHub Actions workflow permission update
.github/workflows/usage-metrics.yml
Added pull-requests: write permission to extend workflow privileges

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

chore

Poem

🐰 A permission was granted with a line,
Pull-requests now accessible, oh how fine!
The workflow hops forward with newfound might,
A tiny YAML tweak to set things right!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change—adding pull-request permissions to the GitHub Actions workflow to allow sending PRs from the workflow.
Description check ✅ Passed The description is related to the changeset, explaining what permissions were added and why, though minimal in detail.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ae18899 and 0b5b132.

📒 Files selected for processing (1)
  • .github/workflows/usage-metrics.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
.github/workflows/usage-metrics.yml (1)

14-16: Necessary permission addition for PR creation.

The added pull-requests: write permission is required for the gh pr create command (line 87) to execute successfully. This change aligns the permissions with the workflow's actual functionality and follows the principle of least privilege by adding only the minimum necessary scope.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Nov 25, 2025
@mdelapenya mdelapenya merged commit 1da4277 into testcontainers:main Nov 25, 2025
16 checks passed
@mdelapenya mdelapenya deleted the allow-prs branch November 25, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Changes that do not impact the existing functionality github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant