Skip to content

Commit eacf48a

Browse files
committed
Add security policy
1 parent 4284596 commit eacf48a

File tree

6 files changed

+21
-24
lines changed

6 files changed

+21
-24
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,6 @@ jobs:
1515
matrix:
1616
es-version:
1717
- 'es:8.18.3'
18-
- 'es:8.17.8'
19-
- 'es:8.16.6'
20-
- 'es:8.15.2'
21-
- 'es:8.14.3'
22-
- 'es:8.13.4'
23-
- 'es:8.12.2'
24-
- 'es:8.11.4'
25-
- 'es:8.10.4'
26-
- 'os:2.18.0'
27-
- 'os:2.17.1'
28-
- 'os:2.16.0'
29-
- 'os:2.15.0'
30-
- 'os:2.14.0'
31-
- 'os:2.13.0'
32-
- 'os:2.12.0'
33-
- 'os:2.11.1'
34-
- 'os:2.10.0'
35-
- 'os:2.9.0'
36-
- 'os:2.8.0'
37-
- 'os:2.7.0'
38-
- 'os:2.6.0'
3918
env:
4019
mainJob: ${{ matrix.es-version == 'es:8.15.2' }}
4120
sudachiVersion: 20241021

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def distZip = tasks.register('distZip', Zip) {
8686
dependsOn embedVersion, packageJars, packageSpiJars
8787
archiveBaseName.set("${esKind.engine.kind}-${esKind.version}-$archivesBaseName")
8888
from("build/package/${version}/${esKind.engine.kind}-${esKind.version}", 'LICENSE', 'README.md')
89+
from('src/main/extras') {
90+
include 'entitlement-policy.yaml'
91+
}
8992
}
9093

9194
artifacts {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALL-UNNAMED:
2+
- files:
3+
- path: "<<plugin>>/..."
4+
mode: read
5+
- path: "<<config>>/sudachi/..."
6+
mode: read

subplugin/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def distZip = tasks.register('distZip', Zip) {
3838
dependsOn embedVersion, packageJars
3939
archiveBaseName.set("${esKind.engine.kind}-${esKind.version}-$archivesBaseName")
4040
from("build/package/${version}/${esKind.engine.kind}-${esKind.version}")
41+
from('src/main/extras') {
42+
include 'entitlement-policy.yaml'
43+
}
4144
}
4245

4346
spotless {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALL-UNNAMED:
2+
- files:
3+
- path: "<<plugin>>/..."
4+
mode: read
5+
- path: "<<config>>/sudachi/..."
6+
mode: read

test-scripts/00-install-elasticsearch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if [[ -d "$ES_DIR/plugins/analysis-sudachi" ]]; then
6969
"$ES_DIR/bin/$ES_PLUGIN_BIN" remove analysis-sudachi
7070
fi
7171

72-
"$ES_DIR/bin/$ES_PLUGIN_BIN" install "$PLUGIN"
72+
"$ES_DIR/bin/$ES_PLUGIN_BIN" install --batch "$PLUGIN"
7373

7474
if [[ "$SHOULD_RUN_TEST01" == "true" ]]; then
7575
TEST_PLUGIN_PATH="$(readlink -f "$TEST_PLUGIN_PATH")"
@@ -82,8 +82,8 @@ if [[ "$SHOULD_RUN_TEST01" == "true" ]]; then
8282
"$ES_DIR/bin/$ES_PLUGIN_BIN" remove analysis-sudachi-childtest
8383
fi
8484

85-
"$ES_DIR/bin/$ES_PLUGIN_BIN" install "analysis-icu"
86-
"$ES_DIR/bin/$ES_PLUGIN_BIN" install "$TEST_PLUGIN"
85+
"$ES_DIR/bin/$ES_PLUGIN_BIN" install --batch "analysis-icu"
86+
"$ES_DIR/bin/$ES_PLUGIN_BIN" install --batch "$TEST_PLUGIN"
8787
fi
8888

8989

0 commit comments

Comments
 (0)