Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict GITHUB_TOKEN default permission #13156

Merged
merged 1 commit into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/repository-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
(To reduce friction for new contributors,
as the default is "Require approval for first-time contributors")

- Workflow permissions
- Default permissions granted to the `GITHUB_TOKEN` when running workflows in this repository:
Read repository contents and packages permissions
- Allow GitHub Actions to create and approve pull requests: UNCHECKED

## Branch protections

The order of branch protection rules
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/assign-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ on:
# because repository write permission is needed to assign reviewers
pull_request_target:

permissions:
contents: read

jobs:
assign-reviewers:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: trask/component-owners@02dfde3c03025c064cc6961975e28a42e81c394a # main
Expand Down