Skip to content

Commit ec52509

Browse files
committed
Merge branch 'main' into x-foo-1-secretsmanager
2 parents 2dbd08e + 70588cd commit ec52509

File tree

85 files changed

+1104
-354
lines changed

Some content is hidden

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

85 files changed

+1104
-354
lines changed

.github/workflows/auto-update-pull-request.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,22 @@ jobs:
5555
git config user.name otelbot
5656
git config user.email [email protected]
5757
58+
- id: gradle-task
59+
if: steps.unzip-patch.outputs.exists == 'true'
60+
run: |
61+
if [[ "${{ github.event.workflow_run.name }}" == "Auto spotless" ]]; then
62+
echo "name=spotlessApply" >> $GITHUB_OUTPUT
63+
elif [[ "${{ github.event.workflow_run.name }}" == "Auto license report" ]]; then
64+
echo "name=generateLicenseReport" >> $GITHUB_OUTPUT
65+
else
66+
echo "name=unknown" >> $GITHUB_OUTPUT
67+
fi
68+
5869
- name: Apply patch and push
5970
if: steps.unzip-patch.outputs.exists == 'true'
6071
run: |
6172
git apply "${{ runner.temp }}/patch"
62-
git commit -a -m "./gradlew spotlessApply"
73+
git commit -a -m "./gradlew ${{ steps.gradle-task.outputs.name }}"
6374
git push
6475
6576
- id: get-pr
@@ -84,12 +95,12 @@ jobs:
8495
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
8596
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
8697
run: |
87-
gh pr comment $PR_NUMBER --body "🔧 The result from spotlessApply was committed to the PR branch."
98+
gh pr comment $PR_NUMBER --body "🔧 The result from ${{ steps.gradle-task.outputs.name }} was committed to the PR branch."
8899
89100
- if: steps.unzip-patch.outputs.exists == 'true' && failure()
90101
env:
91102
GH_REPO: ${{ github.repository }}
92103
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
93104
PR_NUMBER: ${{ steps.get-pr.outputs.number }}
94105
run: |
95-
gh pr comment $PR_NUMBER --body "❌ The result from spotlessApply could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."
106+
gh pr comment $PR_NUMBER --body "❌ The result from ${{ steps.gradle-task.outputs.name }} could not be committed to the PR branch, see logs: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID."

.github/workflows/codeql.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ permissions:
2121

2222
jobs:
2323
analyze:
24+
name: Analyze (${{ matrix.language }})
2425
permissions:
2526
contents: read
2627
actions: read # for github/codeql-action/init to get workflow details
2728
security-events: write # for github/codeql-action/analyze to upload SARIF results
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include:
33+
- language: actions
34+
- language: java
2835
runs-on: oracle-8cpu-32gb-x86-64
29-
3036
steps:
3137
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3238

@@ -44,25 +50,29 @@ jobs:
4450
# and so it uses more parallelism which uses more memory
4551
sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx8g /" gradle.properties
4652
47-
- name: Setup Gradle
53+
- name: Set up Gradle
54+
if: matrix.language == 'java'
4855
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
4956
with:
5057
cache-read-only: ${{ github.event_name == 'pull_request' }}
5158

5259
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
60+
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
5461
with:
55-
languages: java, actions
62+
languages: ${{ matrix.language }}
5663
# using "latest" helps to keep up with the latest Kotlin support
5764
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
5865
tools: latest
5966

60-
- name: Build
67+
- name: Assemble
68+
if: matrix.language == 'java'
6169
# --no-build-cache is required for codeql to analyze all modules
6270
# --no-daemon is required for codeql to observe the compilation
6371
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands)
6472
# quarkus tasks are disabled because they often cause the build to fail (see https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/13284)
6573
run: ./gradlew assemble -x javadoc -x :instrumentation:quarkus-resteasy-reactive:quarkus3-testing:quarkusGenerateCodeDev -x :instrumentation:quarkus-resteasy-reactive:quarkus2-testing:quarkusGenerateCodeDev --no-build-cache --no-daemon
6674

6775
- name: Perform CodeQL analysis
68-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
76+
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
77+
with:
78+
category: "/language:${{matrix.language}}"

.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@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
45+
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4646
with:
4747
sarif_file: results.sarif

.github/workflows/reusable-markdown-link-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
--exclude "^http://code.google.com/p/concurrentlinkedhashmap$"
2323
--exclude "^https://softwareengineering.stackexchange.com/questions/29727"
2424
--max-retries 6
25-
--max-concurrency 1
25+
--max-concurrency 4
26+
--github-token ${{ github.token }}
2627
.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ derby.log
5757
hs_err_pid*
5858
replay_pid*
5959
.attach_pid*
60-
**/.telemetry*
60+
.telemetry*
6161

6262
!java-agent/benchmark/releases/*.jar
6363

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ See [Running the tests](./docs/contributing/running-tests.md) for more details.
1717

1818
For developers testing code changes before a release is complete, there are
1919
snapshot builds of the `main` branch. They are available from
20-
the Sonatype OSS snapshots repository at `https://oss.sonatype.org/content/repositories/snapshots/`
21-
([browse](https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/))
20+
the Sonatype snapshot repository at `https://central.sonatype.com/repository/maven-snapshots/`
21+
([browse](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/)).
2222

2323
### Building from source
2424

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The version is specified in [version.gradle.kts](version.gradle.kts).
88

99
Every successful CI build of the main branch automatically executes `./gradlew publishToSonatype`
1010
as the last step, which publishes a snapshot build to
11-
[Sonatype OSS snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/io/opentelemetry/).
11+
[Sonatype snapshot repository](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/).
1212

1313
## Release cadence
1414

benchmark-overhead/Dockerfile.petclinic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.27_6-jdk@sha256:2efe33b5bd32f948e827c66761f0190150103ba3316395703a6e14322b0f4b87 as app-build
1+
FROM eclipse-temurin:11.0.27_6-jdk@sha256:2ecaad32bb7a709078bac5a56669c292cfb1bb2cbabcdbe8340e9367bbf7e5d4 as app-build
22

33
# This is the base image that will contain a built version of the spring-petclinic-rest
44
# application. Installing the dependencies and maven compiling the application is time

buildscripts/dependency-check-suppressions.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@
1313
<vulnerabilityName>CVE-2023-45142</vulnerabilityName>
1414
<vulnerabilityName>CVE-2023-47108</vulnerabilityName>
1515
</suppress>
16+
<suppress>
17+
<!-- detected CVE is for a different project https://www.cve.org/CVERecord?id=CVE-2018-17046 -->
18+
<packageUrl>pkg:maven/codes.rafael.asmjdkbridge/[email protected]</packageUrl>
19+
<vulnerabilityName>CVE-2018-17046</vulnerabilityName>
20+
</suppress>
21+
<suppress>
22+
<!-- detected CVEs are json-java not groovy-json, https://www.cve.org/CVERecord?id=CVE-2022-45688
23+
https://nvd.nist.gov/vuln/detail/cve-2023-5072 -->
24+
<packageUrl>pkg:maven/org.codehaus.groovy/[email protected]</packageUrl>
25+
<vulnerabilityName>CVE-2022-45688</vulnerabilityName>
26+
<vulnerabilityName>CVE-2023-5072</vulnerabilityName>
27+
</suppress>
1628
</suppressions>

conventions/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dependencies {
6060
implementation("com.gradleup.shadow:shadow-gradle-plugin:8.3.6")
6161
implementation("org.apache.httpcomponents:httpclient:4.5.14")
6262
implementation("com.gradle.develocity:com.gradle.develocity.gradle.plugin:4.0.2")
63-
implementation("org.owasp:dependency-check-gradle:12.1.2")
63+
implementation("org.owasp:dependency-check-gradle:12.1.3")
6464
implementation("ru.vyarus:gradle-animalsniffer-plugin:2.0.1")
6565
implementation("org.spdx:spdx-gradle-plugin:0.9.0")
6666
// When updating, also update dependencyManagement/build.gradle.kts

0 commit comments

Comments
 (0)