Skip to content

Commit 8a0a4ad

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix_yaml
2 parents d08649a + a132bb5 commit 8a0a4ad

File tree

12 files changed

+89
-196
lines changed

12 files changed

+89
-196
lines changed

.github/workflows/benchmark-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
run: |
150150
./gradlew :distribution:archives:linux-tar:assemble -Dbuild.snapshot=false
151151
- name: Configure AWS credentials
152-
uses: aws-actions/configure-aws-credentials@v4
152+
uses: aws-actions/configure-aws-credentials@v5
153153
with:
154154
role-to-assume: ${{ secrets.UPLOAD_ARCHIVE_ARTIFACT_ROLE }}
155155
role-session-name: publish-to-s3
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '42 20 * * 6'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'java' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v5
39+
- name: Set up JDK 21
40+
uses: actions/setup-java@v4
41+
with:
42+
java-version: 21
43+
distribution: temurin
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v3
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v3
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v3

.github/workflows/lucene-snapshots.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: ./gradlew publishJarsPublicationToMavenLocal -Pversion.suffix=snapshot-${{ env.REVISION }}
4848

4949
- name: Configure AWS credentials
50-
uses: aws-actions/configure-aws-credentials@v4
50+
uses: aws-actions/configure-aws-credentials@v5
5151
with:
5252
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_SECRET_ROLE }}
5353
aws-region: us-east-1
@@ -60,7 +60,7 @@ jobs:
6060
echo "LUCENE_SNAPSHOTS_BUCKET=$lucene_snapshots_bucket" >> $GITHUB_OUTPUT
6161
6262
- name: Configure AWS credentials
63-
uses: aws-actions/configure-aws-credentials@v4
63+
uses: aws-actions/configure-aws-credentials@v5
6464
with:
6565
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_S3_ROLE }}
6666
aws-region: us-east-1
@@ -70,7 +70,7 @@ jobs:
7070
aws s3 cp ~/.m2/repository/org/apache/lucene/ s3://${{ steps.get_s3_bucket.outputs.LUCENE_SNAPSHOTS_BUCKET }}/snapshots/lucene/org/apache/lucene/ --recursive --no-progress
7171
7272
- name: Configure AWS credentials
73-
uses: aws-actions/configure-aws-credentials@v4
73+
uses: aws-actions/configure-aws-credentials@v5
7474
with:
7575
role-to-assume: ${{ secrets.LUCENE_SNAPSHOTS_ROLE }}
7676
aws-region: us-west-2

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9696
- Bump `log4j2` from 2.21.0 to 2.25.1 ([#19184](https://github.com/opensearch-project/OpenSearch/pull/19184))
9797
- Bump Apache Lucene from 10.2.2 to 10.3.0 ([#19296](https://github.com/opensearch-project/OpenSearch/pull/19296))
9898
- Add com.google.code.gson:gson to the gradle version catalog ([#19328](https://github.com/opensearch-project/OpenSearch/pull/19328))
99+
- Bump `org.apache.logging.log4j:log4j-core` from 2.25.1 to 2.25.2 ([#19360](https://github.com/opensearch-project/OpenSearch/pull/19360))
100+
- Bump `aws-actions/configure-aws-credentials` from 4 to 5 ([#19363](https://github.com/opensearch-project/OpenSearch/pull/19363))
101+
- Bump `com.azure:azure-identity` from 1.14.2 to 1.18.0 ([#19361](https://github.com/opensearch-project/OpenSearch/pull/19361))
99102

100103
### Deprecated
101104

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ gradle.projectsEvaluated {
410410
if (task != null) {
411411
task.jvmArgs += [
412412
"--add-modules=jdk.incubator.vector",
413-
"--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED"
413+
"--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED",
414+
"--enable-native-access=ALL-UNNAMED"
414415
]
415416

416417
// Add Java Agent for security sandboxing

buildSrc/src/testKit/thirdPartyAudit/sample_jars/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
dependencies {
20-
implementation "org.apache.logging.log4j:log4j-core:2.25.1"
20+
implementation "org.apache.logging.log4j:log4j-core:2.25.2"
2121
}
2222

2323
["0.0.1", "0.0.2"].forEach { v ->

plugins/repository-azure/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies {
5757
api "io.netty:netty-transport-native-unix-common:${versions.netty}"
5858
implementation project(':modules:transport-netty4')
5959
api 'com.azure:azure-storage-blob:12.31.2'
60-
api 'com.azure:azure-identity:1.14.2'
60+
api 'com.azure:azure-identity:1.18.0'
6161
// Start of transitive dependencies for azure-identity
6262
api 'com.microsoft.azure:msal4j-persistence-extension:1.3.0'
6363
api "net.java.dev.jna:jna-platform:${versions.jna}"

plugins/repository-azure/licenses/azure-identity-1.14.2.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b10ea68d795e9cbbbb2e136f804e6ff6a8fa8821

qa/evil-tests/build.gradle

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,12 @@ apply plugin: 'opensearch.testclusters'
4040
apply plugin: 'opensearch.standalone-test'
4141

4242
dependencies {
43-
testImplementation 'com.google.jimfs:jimfs:1.3.1'
4443
testImplementation(project(':distribution:tools:plugin-cli')) {
4544
exclude group: 'org.bouncycastle'
4645
}
4746
testCompileOnly "com.github.spotbugs:spotbugs-annotations:4.9.4"
4847
}
4948

50-
// TODO: give each evil test its own fresh JVM for more isolation.
51-
5249
test {
5350
systemProperty 'tests.security.manager', 'false'
5451
}
55-
56-
thirdPartyAudit {
57-
ignoreMissingClasses(
58-
'com.ibm.icu.lang.UCharacter'
59-
)
60-
61-
ignoreViolations(
62-
// uses internal java api: sun.misc.Unsafe
63-
'com.google.common.hash.LittleEndianByteArray$UnsafeByteArray',
64-
'com.google.common.hash.LittleEndianByteArray$UnsafeByteArray$1',
65-
'com.google.common.hash.LittleEndianByteArray$UnsafeByteArray$2',
66-
'com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator',
67-
'com.google.common.util.concurrent.AbstractFutureState$UnsafeAtomicHelper'
68-
)
69-
}
70-
71-
tasks.test {
72-
if (BuildParams.runtimeJavaVersion > JavaVersion.VERSION_1_8) {
73-
jvmArgs += ["--add-opens", "java.base/java.lang=ALL-UNNAMED"]
74-
}
75-
}

0 commit comments

Comments
 (0)