Skip to content

Commit 8575c9a

Browse files
committed
Merge branch 'main' into integration-test-kafka
2 parents 665c390 + b3af09e commit 8575c9a

File tree

52 files changed

+718
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+718
-385
lines changed

.clomonitor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# see https://github.com/cncf/clomonitor/blob/main/docs/checks.md#exemptions
2+
exemptions:
3+
- check: artifacthub_badge
4+
reason: "Artifact Hub doesn't support Java packages"
5+
- check: openssf_badge
6+
reason: "ETOOMANYBADGES, but the work has been done: https://www.bestpractices.dev/projects/9992"

.fossa.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 3
2+
3+
targets:
4+
only:
5+
- type: gradle
6+
7+
experimental:
8+
gradle:
9+
configurations-only:
10+
# consumer will only be exposed to these dependencies
11+
- runtimeClasspath
File renamed without changes.

.github/renovate.json5

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:base"
4+
"config:recommended",
5+
"docker:pinDigests",
6+
"helpers:pinGitHubActionDigests"
57
],
8+
"ignorePresets": [":ignoreModulesAndTests"], // needed to keep maven-extension test pom files up-to-date
69
"packageRules": [
10+
{
11+
// this is to reduce the number of renovate PRs
12+
"matchManagers": [
13+
"github-actions",
14+
"dockerfile"
15+
],
16+
"extends": ["schedule:weekly"],
17+
"groupName": "weekly update"
18+
},
719
{
820
"matchPackageNames": [
921
"io.opentelemetry:**",
@@ -16,14 +28,6 @@
1628
// of that release instead of the unstable version for a future release
1729
"ignoreUnstable": false
1830
},
19-
{
20-
"matchPackagePrefixes": ["ch.qos.logback:"],
21-
"groupName": "logback packages"
22-
},
23-
{
24-
"matchPackagePrefixes": ["io.micrometer:"],
25-
"groupName": "micrometer packages"
26-
},
2731
{
2832
// prevent 3.0.1u2 -> 3.0.1
2933
"matchPackageNames": ["com.google.code.findbugs:annotations"],
@@ -99,5 +103,17 @@
99103
"matchUpdateTypes": ["major"],
100104
"enabled": false,
101105
}
106+
],
107+
"customManagers": [
108+
{
109+
"customType": "regex",
110+
"datasourceTemplate": "npm",
111+
"fileMatch": [
112+
"^.github/workflows/"
113+
],
114+
"matchStrings": [
115+
"npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)"
116+
]
117+
}
102118
]
103119
}

.github/repository-settings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Repository settings
22

33
Same
4-
as [opentelemetry-java-instrumentation repository settings](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/.github/repository-settings.md#repository-settings)
5-
,
6-
except that the branch protection rules for `v*` and `gh-pages` are not needed in this repository.
4+
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.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ echo $contributors1 $contributors2 \
8888
| grep -v dependabot \
8989
| grep -v renovate \
9090
| grep -v opentelemetrybot \
91+
| grep -v otelbot \
9192
| sed 's/^/@/'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -e
2+
3+
git config user.name otelbot
4+
git config user.email [email protected]

.github/scripts/use-cla-approved-github-bot.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/assign-reviewers.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ on:
88
# because repository write permission is needed to assign reviewers
99
pull_request_target:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
assign-reviewers:
16+
permissions:
17+
contents: read
18+
pull-requests: write # for assigning reviewers
1319
runs-on: ubuntu-latest
1420
steps:
15-
- uses: open-telemetry/assign-reviewers-action@main
21+
- uses: open-telemetry/assign-reviewers-action@b101a9c17274e3d4fff0853898007e9e3a366675 # main
1622
with:
1723
config-file: .github/component_owners.yml

.github/workflows/backport.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
description: "The pull request # to backport"
77
required: true
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
backport:
14+
permissions:
15+
contents: write # for Git to git push
1116
runs-on: ubuntu-latest
1217
steps:
1318
- run: |
@@ -16,24 +21,30 @@ jobs:
1621
exit 1
1722
fi
1823
19-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2025
with:
2126
# history is needed to run git cherry-pick below
2227
fetch-depth: 0
2328

24-
- name: Use CLA approved github bot
25-
run: .github/scripts/use-cla-approved-github-bot.sh
29+
- name: Use CLA approved bot
30+
run: .github/scripts/use-cla-approved-bot.sh
31+
32+
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
33+
id: otelbot-token
34+
with:
35+
app-id: ${{ vars.OTELBOT_APP_ID }}
36+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
2637

2738
- name: Create pull request
2839
env:
2940
NUMBER: ${{ github.event.inputs.number }}
3041
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
31-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
42+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
3243
run: |
3344
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
3445
title=$(gh pr view $NUMBER --json title --jq .title)
3546
36-
branch="opentelemetrybot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
47+
branch="otelbot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
3748
3849
git checkout -b $branch
3950
git cherry-pick $commit

0 commit comments

Comments
 (0)