Skip to content

Commit a8233c8

Browse files
Merge branch 'main' into fix/renovate-tidy-loop
2 parents 56d65e5 + 66110ac commit a8233c8

41 files changed

Lines changed: 2885 additions & 3030 deletions

File tree

Some content is hidden

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

.github/actions/build-java-layer/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ outputs:
88
javawrapper-artifact-path:
99
description: 'Absolute path to the javawrapper layer zip artifact'
1010
value: ${{ github.workspace }}/java/layer-wrapper/build/distributions/opentelemetry-javawrapper-layer.zip
11+
javawrapper-targz-artifact-path:
12+
description: 'Absolute path to the javawrapper layer tar.gz artifact'
13+
value: ${{ github.workspace }}/java/layer-wrapper/build/distributions/opentelemetry-javawrapper-layer.tar.gz
1114
javaagent-version:
1215
description: 'OpenTelemetry Java agent version included in the layer'
1316
value: ${{ steps.javaagent-version.outputs.javaagent-version }}
@@ -18,7 +21,7 @@ outputs:
1821
runs:
1922
using: composite
2023
steps:
21-
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
24+
- uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
2225
with:
2326
distribution: corretto
2427
java-version: 17

.github/renovate.json5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
],
2828
postUpdateOptions: [
2929
'gomodTidyAll',
30+
'gomodTidyE',
31+
'gomodUpdateImportPaths',
3032
],
3133
semanticCommitType: 'build',
3234
schedule: [
@@ -47,6 +49,8 @@
4749
],
4850
postUpdateOptions: [
4951
'gomodTidyAll',
52+
'gomodTidyE',
53+
'gomodUpdateImportPaths',
5054
],
5155
semanticCommitType: 'build',
5256
schedule: [
@@ -154,6 +158,15 @@
154158
],
155159
dependencyDashboardApproval: true,
156160
},
161+
{
162+
matchUpdateTypes: [
163+
'major'
164+
],
165+
matchDepNames: [
166+
'node',
167+
],
168+
dependencyDashboardApproval: true,
169+
},
157170
{
158171
matchManagers: [
159172
"gomod"
@@ -174,11 +187,15 @@
174187
'golang',
175188
],
176189
enabled: true,
190+
prBodyTemplate: "{{{header}}}{{{warnings}}}🔧 This Pull Request updates lock files to use the latest dependency versions.{{{notes}}}{{{configDescription}}}{{{controls}}}{{{footer}}}",
191+
abandonmentThreshold: "50 years",
177192
schedule: [
178193
'before 8am on Wednesday',
179194
],
180195
postUpdateOptions: [
181196
'gomodTidyAll',
197+
'gomodTidyE',
198+
'gomodUpdateImportPaths',
182199
],
183200
}
184201
],
@@ -192,6 +209,8 @@
192209
},
193210
postUpdateOptions: [
194211
'gomodTidyAll',
212+
'gomodTidyE',
213+
'gomodUpdateImportPaths',
195214
],
196215
semanticCommits: 'enabled',
197216
semanticCommitType: 'build',

.github/workflows/ci-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727

28-
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
28+
- uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
2929
with:
3030
distribution: corretto
3131
java-version: 17

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
# Initializes the CodeQL tools for scanning.
7070
- name: Initialize CodeQL
71-
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
71+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
7272
with:
7373
languages: ${{ matrix.target.language }}
7474
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -82,7 +82,7 @@ jobs:
8282
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
8383
# If this step fails, then you should remove it and run the build manually (see below)
8484
- name: Autobuild
85-
uses: github/codeql-action/autobuild@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
85+
uses: github/codeql-action/autobuild@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
8686
with:
8787
working-directory: ${{ matrix.target.directory }}
8888
# There are no array literals in GHA that is why we need to use fromJson.
@@ -99,7 +99,7 @@ jobs:
9999
# ./location_of_script_within_repo/buildscript.sh
100100

101101
- name: Set up Java
102-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
102+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
103103
with:
104104
distribution: corretto
105105
java-version: '17'
@@ -128,6 +128,6 @@ jobs:
128128
if: ${{ matrix.target.language == 'csharp' }}
129129

130130
- name: Perform CodeQL Analysis
131-
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
131+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
132132
with:
133133
category: "/language:${{matrix.target.language}}"

.github/workflows/integration-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ jobs:
114114
name: opentelemetry-${{ matrix.language }}-layer.zip
115115
path: artifacts/
116116

117-
- uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3
117+
- uses: aws-actions/configure-aws-credentials@cbe3b392738ccf3f987d68400dafcf4b0624a56c # v6.2.4
118118
with:
119119
role-to-assume: ${{ secrets.INTEGRATION_TEST_ROLE_ARN }}
120120
role-duration-seconds: 1200
121121
aws-region: us-east-1
122122

123123
- if: ${{ startsWith(matrix.language, 'java') }}
124-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
124+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
125125
with:
126126
distribution: corretto
127127
java-version: 17

.github/workflows/layer-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
with:
9595
name: ${{ inputs.artifact-name }}
9696

97-
- uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3
97+
- uses: aws-actions/configure-aws-credentials@cbe3b392738ccf3f987d68400dafcf4b0624a56c # v6.2.4
9898
with:
9999
role-to-assume: ${{ inputs.role-arn || secrets.OTEL_LAMBDA_LAYER_PUBLISH_ROLE_ARN || secrets.PROD_LAMBDA_ROLE_ARN }}
100100
role-duration-seconds: 1200

.github/workflows/ossf-scorecard.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,12 @@ on:
88
- cron: "59 7 * * 6" # once a week
99
workflow_dispatch:
1010

11-
permissions: read-all
11+
permissions: {}
1212

1313
jobs:
1414
analysis:
15-
runs-on: ubuntu-latest
1615
permissions:
17-
# Needed for Code scanning upload
18-
security-events: write
19-
# Needed for GitHub OIDC token if publish_results is true
20-
id-token: write
21-
steps:
22-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23-
with:
24-
persist-credentials: false
25-
26-
- uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
27-
with:
28-
results_file: results.sarif
29-
results_format: sarif
30-
publish_results: true
31-
32-
# Upload the results as artifacts (optional). Commenting out will disable
33-
# uploads of run results in SARIF format to the repository Actions tab.
34-
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
35-
- name: "Upload artifact"
36-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
37-
with:
38-
name: SARIF file
39-
path: results.sarif
40-
retention-days: 5
41-
42-
# Upload the results to GitHub's code scanning dashboard (optional).
43-
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
44-
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
46-
with:
47-
sarif_file: results.sarif
16+
contents: read # for actions/checkout
17+
id-token: write # for Scorecard to publish results
18+
security-events: write # for the SARIF upload to code scanning
19+
uses: open-telemetry/shared-workflows/.github/workflows/scorecard.yml@03559ef555db0eae5d85c3c6347d1530243e7aa7 # v0.13.0

.github/workflows/release-layer-java.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,15 @@ jobs:
4646
name: opentelemetry-javawrapper-layer.zip
4747
path: ${{ steps.build.outputs.javawrapper-artifact-path }}
4848

49+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
50+
name: Save javawrapper layer tar.gz to build
51+
with:
52+
name: opentelemetry-javawrapper-layer.tar.gz
53+
path: ${{ steps.build.outputs.javawrapper-targz-artifact-path }}
54+
4955
- name: Add Binary to Release
5056
run: |
51-
gh release upload ${{github.ref_name}} ${{ steps.build.outputs.javawrapper-artifact-path }}
57+
gh release upload ${{github.ref_name}} ${{ steps.build.outputs.javawrapper-artifact-path }} ${{ steps.build.outputs.javawrapper-targz-artifact-path }}
5258
env:
5359
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5460

0 commit comments

Comments
 (0)