Skip to content

Commit d0ce47c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fossa
2 parents 81b7b2e + a82666c commit d0ce47c

17 files changed

+107
-61
lines changed

.clomonitor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exemptions:
2+
- check: artifacthub_badge
3+
reason: "Artifact Hub doesn't support Java packages"

.github/repository-settings.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
8787
- Exclude:
8888
- `release/*`
8989
- `renovate/**/*`
90-
- `opentelemetrybot/**/*`
90+
- `otelbot/**/*`
9191
- `revert-*/**/*` (these are created when using the GitHub UI to revert a PR)
9292
- Restrict creations: CHECKED
9393

@@ -126,6 +126,8 @@ settings](https://github.com/open-telemetry/community/blob/main/docs/how-to-conf
126126
### Organization secrets
127127

128128
- `FOSSA_API_KEY`
129-
- `OPENTELEMETRYBOT_GITHUB_TOKEN`
130-
- `OTELBOT_CLIENT_ID`
131129
- `OTELBOT_PRIVATE_KEY`
130+
131+
### Organization variables
132+
133+
- `OTELBOT_APP_ID`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,5 @@ echo "$contributors1" "$contributors2" \
8585
| grep -v github-actions \
8686
| grep -v renovate \
8787
| grep -v opentelemetrybot \
88+
| grep -v otelbot \
8889
| 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/auto-update-otel-sdk.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
| sed 's/^v//')
3434
3535
matches=$(gh pr list \
36-
--author opentelemetrybot \
36+
--author otelbot \
3737
--state open \
3838
--search "in:title \"Update the OpenTelemetry SDK version to $latest_version\"")
3939
if [ ! -z "$matches" ]
@@ -62,9 +62,6 @@ jobs:
6262
VERSION: ${{ needs.check-versions.outputs.latest-version }}
6363
run: ./.github/scripts/update-sdk-version.sh $VERSION
6464

65-
- name: Use CLA approved github bot
66-
run: .github/scripts/use-cla-approved-github-bot.sh
67-
6865
- name: Free disk space
6966
run: .github/scripts/gha-free-disk-space.sh
7067

@@ -84,16 +81,25 @@ jobs:
8481
if: failure()
8582
run: git checkout -- licenses
8683

84+
- name: Use CLA approved bot
85+
run: .github/scripts/use-cla-approved-bot.sh
86+
87+
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
88+
id: otelbot-token
89+
with:
90+
app-id: ${{ vars.OTELBOT_APP_ID }}
91+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
92+
8793
- name: Create pull request against main
8894
if: success() || failure()
8995
env:
9096
VERSION: ${{ needs.check-versions.outputs.latest-version }}
9197
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
92-
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
98+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
9399
run: |
94100
message="Update the OpenTelemetry SDK version to $VERSION"
95101
body="Update the OpenTelemetry SDK version to \`$VERSION\`."
96-
branch="opentelemetrybot/update-opentelemetry-sdk-to-${VERSION}"
102+
branch="otelbot/update-opentelemetry-sdk-to-${VERSION}"
97103
98104
git checkout -b $branch
99105
git add -u

.github/workflows/backport.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,25 @@ jobs:
2626
# history is needed to run git cherry-pick below
2727
fetch-depth: 0
2828

29+
- name: Use CLA approved bot
30+
run: .github/scripts/use-cla-approved-bot.sh
31+
2932
- uses: actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
30-
id: app-token
33+
id: otelbot-token
3134
with:
3235
app-id: ${{ vars.OTELBOT_APP_ID }}
3336
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
3437

35-
- name: Use CLA approved author
36-
run: |
37-
git config user.name otelbot
38-
git config user.email [email protected]
39-
4038
- name: Create pull request
4139
env:
4240
NUMBER: ${{ github.event.inputs.number }}
4341
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
44-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
42+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
4543
run: |
4644
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
4745
title=$(gh pr view $NUMBER --json title --jq .title)
4846
49-
branch="opentelemetrybot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
47+
branch="otelbot/backport-${NUMBER}-to-${GITHUB_REF_NAME//\//-}"
5048
5149
git checkout -b $branch
5250
git cherry-pick $commit

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cache-read-only: ${{ github.event_name == 'pull_request' }}
4949

5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
51+
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
5252
with:
5353
languages: java, actions
5454
# using "latest" helps to keep up with the latest Kotlin support
@@ -62,4 +62,4 @@ jobs:
6262
run: ./gradlew assemble -x javadoc --no-build-cache --no-daemon
6363

6464
- name: Perform CodeQL analysis
65-
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
65+
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9

.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@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
45+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
4646
with:
4747
sarif_file: results.sarif

.github/workflows/overhead-benchmark-daily.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
cwd: "./gh-pages"
5050
branch: "gh-pages"
5151
message: "update test result data"
52-
author_name: opentelemetrybot
53-
author_email: 107717825+opentelemetrybot@users.noreply.github.com
54-
committer_name: opentelemetrybot
55-
committer_email: 107717825+opentelemetrybot@users.noreply.github.com
52+
author_name: otelbot
53+
author_email: 197425009+otelbot@users.noreply.github.com
54+
committer_name: otelbot
55+
committer_email: 197425009+otelbot@users.noreply.github.com
5656

5757
workflow-notification:
5858
permissions:

0 commit comments

Comments
 (0)