Skip to content

Commit 7ae2731

Browse files
authored
Merge branch 'open-telemetry:main' into main
2 parents 8194500 + b29e9cb commit 7ae2731

File tree

27 files changed

+243
-49
lines changed

27 files changed

+243
-49
lines changed

.github/repository-settings.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,28 @@
22

33
Same
44
as [opentelemetry-java-instrumentation repository settings](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/.github/repository-settings.md#repository-settings),
5-
except that the rules for `gh-pages` and `cloudfoundry` branches are not relevant in this
6-
repository.
5+
except for
6+
7+
- The rules for `gh-pages` and `cloudfoundry` branches are not relevant in this repository.
8+
9+
and the enablement of merge queues below.
10+
11+
## Merge queue
12+
13+
Needs to be enabled using classic branch protection (instead of rule set)
14+
because of our use of the classic branch protection "Restrict who can push to matching branches"
15+
which otherwise will block the merge queue from merging to main.
16+
17+
### Restrict branch creation
18+
19+
- Additional exclusion for `gh-readonly-queue/main/pr-*`
20+
21+
### Classic branch protection for `main`
22+
23+
- Require merge queue: CHECKED
24+
- Build concurrency: 5
25+
- Maximum pull requests to build: 5
26+
- Minimum pull requests to merge: 1, or after 5 minutes
27+
- Maximum pull requests to merge: 5
28+
- Only merge non-failing pull requests: CHECKED
29+
- Status check timeout: 60 minutes

.github/scripts/generate-release-contributors.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ echo $contributors1 $contributors2 \
8585
| sort -uf \
8686
| grep -v linux-foundation-easycla \
8787
| grep -v github-actions \
88-
| grep -v dependabot \
8988
| grep -v renovate \
90-
| grep -v opentelemetrybot \
9189
| grep -v otelbot \
9290
| sed 's/^/@/'

.github/workflows/assign-reviewers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
pull-requests: write # for assigning reviewers
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: open-telemetry/assign-reviewers-action@41a631b3741852734aa35aa6068fbb546b7a62c3 # main
21+
- uses: open-telemetry/assign-reviewers-action@ab8aca8056f3b5af18282b54baa57a852c47abf8 # main
2222
with:
2323
config-file: .github/component_owners.yml

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Use CLA approved bot
3030
run: .github/scripts/use-cla-approved-bot.sh
3131

32-
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
32+
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
3333
id: otelbot-token
3434
with:
3535
app-id: ${{ vars.OTELBOT_APP_ID }}

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- release/*
88
pull_request:
9+
merge_group:
910
workflow_dispatch:
1011

1112
permissions:
@@ -22,7 +23,7 @@ jobs:
2223
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2324

2425
- name: Set up JDK for running Gradle
25-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
26+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2627
with:
2728
distribution: temurin
2829
java-version: 17
@@ -51,14 +52,14 @@ jobs:
5152

5253
- id: setup-test-java
5354
name: Set up JDK ${{ matrix.test-java-version }} for running tests
54-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
55+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
5556
with:
5657
# using zulu because new releases get published quickly
5758
distribution: zulu
5859
java-version: ${{ matrix.test-java-version }}
5960

6061
- name: Set up JDK for running Gradle
61-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
62+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
6263
with:
6364
distribution: temurin
6465
java-version: 17
@@ -80,7 +81,7 @@ jobs:
8081
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8182

8283
- name: Set up JDK for running Gradle
83-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
84+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8485
with:
8586
distribution: temurin
8687
java-version: 17
@@ -132,7 +133,7 @@ jobs:
132133
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
133134

134135
- name: Set up JDK for running Gradle
135-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
136+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
136137
with:
137138
distribution: temurin
138139
java-version: 17
@@ -152,7 +153,7 @@ jobs:
152153
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
153154

154155
required-status-check:
155-
if: github.event_name == 'pull_request' && always()
156+
if: (github.event_name == 'pull_request' || github.event_name == 'merge_group') && always()
156157
needs:
157158
- build
158159
- test

.github/workflows/codeql.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: CodeQL
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
7-
- release/*
84
push:
95
branches:
106
- main
117
- release/*
8+
pull_request:
9+
# TODO (trask) adding this to the merge queue causes the merge queue to fail
10+
# see related issues
11+
# - https://github.com/github/codeql-action/issues/1572
12+
# - https://github.com/github/codeql-action/issues/1537
13+
# - https://github.com/github/codeql-action/issues/2691
14+
# merge_group:
1215
schedule:
1316
- cron: "29 13 * * 2" # weekly at 13:29 UTC on Tuesday
1417

@@ -26,7 +29,7 @@ jobs:
2629
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2730

2831
- name: Set up Java 17
29-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
32+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3033
with:
3134
distribution: temurin
3235
java-version: 17
@@ -35,7 +38,7 @@ jobs:
3538
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
3639

3740
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
41+
uses: github/codeql-action/init@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
3942
with:
4043
languages: java, actions
4144
# using "latest" helps to keep up with the latest Kotlin support
@@ -49,4 +52,4 @@ jobs:
4952
run: ./gradlew assemble --no-build-cache --no-daemon
5053

5154
- name: Perform CodeQL analysis
52-
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
55+
uses: github/codeql-action/analyze@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ name: Gradle wrapper validation
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- release/*
58
pull_request:
9+
merge_group:
610

711
permissions:
812
contents: read

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
45+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
4646
with:
4747
sarif_file: results.sarif

.github/workflows/owasp-dependency-check-daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Set up JDK for running Gradle
21-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
21+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2222
with:
2323
distribution: temurin
2424
java-version: 17

.github/workflows/prepare-patch-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Use CLA approved bot
4848
run: .github/scripts/use-cla-approved-bot.sh
4949

50-
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
50+
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
5151
id: otelbot-token
5252
with:
5353
app-id: ${{ vars.OTELBOT_APP_ID }}

0 commit comments

Comments
 (0)