Skip to content

Commit 3ee2f07

Browse files
committed
Merge remote-tracking branch 'upstream/main' into ossf-gradlew
2 parents f47c506 + 7a57491 commit 3ee2f07

File tree

1 file changed

+62
-39
lines changed

1 file changed

+62
-39
lines changed

.github/repository-settings.md

+62-39
Original file line numberDiff line numberDiff line change
@@ -23,45 +23,66 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
2323
Read repository contents and packages permissions
2424
- Allow GitHub Actions to create and approve pull requests: UNCHECKED
2525

26-
## Branch protections
27-
28-
The order of branch protection rules
29-
[can be important](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#about-branch-protection-rules).
30-
The branch protection rules below should be added before the `**/**` branch protection rule
31-
(this may require deleting the `**/**` rule and recreating it at the end).
32-
33-
### `main`
34-
35-
- Require branches to be up to date before merging: UNCHECKED
36-
37-
(PR jobs take too long, and leaving this unchecked has not been a significant problem)
38-
39-
- Status checks that are required:
40-
41-
- EasyCLA
42-
- required-status-check
43-
44-
### `release/*`
45-
46-
Same settings as above for [`main`](#main).
47-
48-
### `cloudfoundry`
49-
50-
Same settings as above for [`main`](#main),
51-
except for the `required-status-check` required status check.
52-
53-
### `renovate/**/**` and `opentelemetrybot/**/**`
54-
55-
Same settings as
56-
for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/docs/how-to-configure-new-repository.md#branch-protection-rule-dependabot)
57-
58-
### `gh-pages`
59-
60-
- Everything UNCHECKED
61-
62-
(This branch is currently only used for directly pushing benchmarking results from the
63-
[Nightly overhead benchmark](https://github.com/open-telemetry/opentelemetry-java-instrumentation/actions/workflows/nightly-benchmark-overhead.yml)
64-
job)
26+
## Rules > Rulesets
27+
28+
### `main` and release branches
29+
30+
- Targeted branches:
31+
- `main`
32+
- `release/*`
33+
- `v0.*`
34+
- `v1.*`
35+
- Branch rules
36+
- Restrict deletions: CHECKED
37+
- Require linear history: CHECKED
38+
- Require a pull request before merging: CHECKED
39+
- Required approvals: 1
40+
- Require review from Code Owners: CHECKED
41+
- Allowed merge methods: Squash
42+
- Require status checks to pass
43+
- EasyCLA
44+
- `required-status-check`
45+
- Block force pushes: CHECKED
46+
47+
### `cloudfoundry` branch
48+
49+
- Targeted branches:
50+
- `cloudfoundry`
51+
- Branch rules
52+
- Restrict deletions: CHECKED
53+
- Require linear history: CHECKED
54+
- Require a pull request before merging: CHECKED
55+
- Required approvals: 1
56+
- Require review from Code Owners: CHECKED
57+
- Allowed merge methods: Squash
58+
- Require status checks to pass
59+
- EasyCLA
60+
- Block force pushes: CHECKED
61+
62+
### `gh-pages` branch
63+
64+
- Targeted branches:
65+
- `gh-pages`
66+
- Branch rules
67+
- Restrict deletions: CHECKED
68+
- Require linear history: CHECKED
69+
- Block force pushes: CHECKED
70+
71+
### Restrict branch creation
72+
73+
- Targeted branches
74+
- Exclude:
75+
- `release/*`
76+
- `renovate/**/**`
77+
- `opentelemetrybot/**/**`
78+
- Restrict creations: CHECKED
79+
80+
### Restrict updating tags
81+
82+
- Targeted tags
83+
- All tags
84+
- Restrict updates: CHECKED
85+
- Restrict deletions: CHECKED
6586

6687
## Code security and analysis
6788

@@ -85,3 +106,5 @@ for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/d
85106
### Organization secrets
86107

87108
- `OPENTELEMETRYBOT_GITHUB_TOKEN`
109+
- `OTELBOT_CLIENT_ID`
110+
- `OTELBOT_PRIVATE_KEY`

0 commit comments

Comments
 (0)