Skip to content

Commit 234a03f

Browse files
authored
chore: address Trunk issues (#266)
**Description** Add Trivy and address Trunk issues **Checklist** - [X] Code compiles correctly and linting passes locally
1 parent 984c8f7 commit 234a03f

File tree

9 files changed

+69
-68
lines changed

9 files changed

+69
-68
lines changed

Diff for: .github/workflows/ci-dgraph4j-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
schedule:
1616
- cron: 0 0 * * *
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
build:
2023
name: dgraph4j-tests

Diff for: .trunk/trunk.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
33
version: 0.1
44
cli:
5-
version: 1.22.9
5+
version: 1.22.10
66
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
77
plugins:
88
sources:
@@ -18,13 +18,14 @@ runtimes:
1818
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
1919
lint:
2020
enabled:
21+
2122
22-
23+
2324
- git-diff-check
2425
2526
2627
27-
- renovate@39.156.1
28+
- renovate@39.161.0
2829
2930
3031

Diff for: CHANGELOG.md

+30-31
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
66

77
## [24.1.1] - 2024-12-13
88

9-
### Added
9+
**Added**
1010

1111
- add support for big float and fix tests (#246)
1212
- Provide shaded jar with dgraph4j's dependencies (#239)
1313

14-
### Fixed
14+
**Fixed**
1515

1616
- build(deps): bump the minor-and-patch group across 1 directory with 4 updates (#245) (#243) (#244)
1717
(#241) (#237)
1818
- Upgrade to gradle 7.6.4 (#238)
1919

2020
## [24.0.0] - 2024-08-06
2121

22-
### Added
22+
**Added**
2323

2424
- feat: Add Vector Support. ([#220])
2525

26-
### Fixed
26+
**Fixed**
2727

2828
- fix: Issues with disconnects addressed with Netty, protoc and protobuf-java updates. ([#212])
2929

30-
### Security
30+
**Security**
3131

3232
- chore: Bump com.google.protobuf:protoc from 3.2.0 to 4.27.2 ([#215])
3333
- chore: Bump org.slf4j:slf4j-simple from 1.7.21 to 2.0.13 ([#214])
@@ -36,7 +36,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
3636
- chore: Bump github/codeql-action from 2 to 3 ([#198])
3737
- chore: Bump actions/setup-go from 3 to 5 ([#195])
3838

39-
### Testing
39+
**Testing**
4040

4141
- chore: added a test for best effort queries ([#182])
4242

@@ -58,7 +58,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
5858

5959
## [21.03.2] - 2021-12-24
6060

61-
### Added
61+
**Added**
6262

6363
- feat: Add timeout parameters to transaction requests. ([#172])
6464
- feat: Add shutdown method to client. ([#173])
@@ -68,23 +68,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
6868

6969
## [21.03.1] - 2021-04-22
7070

71-
### Added
71+
**Added**
7272

7373
- fix(deprecation): add DgraphClient.clientStubFromCloudEndpoint ([#170])
7474

7575
[#170]: https://github.com/hypermodeinc/dgraph4j/pull/170
7676

7777
## [21.03.0] - 2021-04-08
7878

79-
### Added
79+
**Added**
8080

8181
- feat: add loginIntoNamespace API on clients (GRAPHQL-1058) ([#166])
8282

83-
### Deprecated
83+
**Deprecated**
8484

8585
- chore: Sync dgo + deprecate Slash endpoint method (GRAPHQL-1141) ([#167])
8686

87-
### Fixed
87+
**Fixed**
8888

8989
- fix(test): Don't use dgraph binary in tests (GRAPHQL-1144) ([#168])
9090

@@ -94,40 +94,40 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
9494

9595
## [20.11.0] - 2020-12-23
9696

97-
### Added
97+
**Added**
9898

9999
- feat: Add support for RDF response (DGRAPH-2659) ([#160])
100100

101-
### Changed
101+
**Changed**
102102

103103
- gRPC: bumped gRPC libs to v1.34.1
104104

105105
[#160]: https://github.com/hypermodeinc/dgraph4j/pull/160
106106

107107
## [20.03.3] - 2020-11-25
108108

109-
### Added
109+
**Added**
110110

111111
- feat: add client constructor with executor (DGRAPH-2746) ([#161])
112112

113113
[#161]: https://github.com/hypermodeinc/dgraph4j/pull/161
114114

115115
## [20.03.2] - 2020-10-27
116116

117-
### Added
117+
**Added**
118118

119119
- feat: Support for Slash GraphQL endpoint ([#158])
120120

121121
[#158]: https://github.com/hypermodeinc/dgraph4j/pull/158
122122

123123
## [20.03.1] - 2020-07-10
124124

125-
### Added
125+
**Added**
126126

127127
- Allow creation of Transaction/AsyncTransaction from TxnContext ([#149])
128128
- feat: Client now has a checkVersion method ([#155])
129129

130-
### Fixed
130+
**Fixed**
131131

132132
- Delete argument from method usePlainText ([#148])
133133

@@ -137,12 +137,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
137137

138138
## [20.03.0] - 2020-04-01
139139

140-
### Changed
140+
**Changed**
141141

142142
- Upgrade grpc version to 1.26.0 ([#130])
143143
- Add docs for background indexing, update api.proto ([1324663])
144144

145-
### Fixed
145+
**Fixed**
146146

147147
- Fix slf4j dependencies. ([#133])
148148
- Fixed running multiple upserts within one transaction ([#137])
@@ -154,31 +154,31 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
154154

155155
## [2.1.0] - 2020-01-30
156156

157-
### Changed
157+
**Changed**
158158

159159
- Sync proto files with dgo ([#121])
160160

161161
[#121]: https://github.com/hypermodeinc/dgraph4j/pull/121
162162

163163
## [2.0.2] - 2019-10-13
164164

165-
### Fixed
165+
**Fixed**
166166

167167
- Fix Opencensus tracing. ([#117])
168168

169169
[#117]: https://github.com/hypermodeinc/dgraph4j/pull/117
170170

171171
## [2.0.1] - 2019-09-05
172172

173-
### Fixed
173+
**Fixed**
174174

175175
- Throw TxnConflictException correctly ([#102])
176176

177177
[#102]: https://github.com/hypermodeinc/dgraph4j/pull/102
178178

179179
## [2.0.0] - 2019-09-02
180180

181-
### Changed
181+
**Changed**
182182

183183
- Upgrade grpc to get rid of Java 11 warnings from grpc ([#94])
184184
- Update grpc API to support Multiple Mutations in future ([#101])
@@ -188,11 +188,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
188188

189189
## [1.7.5] - 2019-06-29
190190

191-
### Added
191+
**Added**
192192

193193
- Add support for upsert block ([#88])
194194

195-
### Fixed
195+
**Fixed**
196196

197197
- Moving the dependency io.opencensus.\* into a test dependency only, ([#89])
198198

@@ -201,12 +201,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
201201

202202
## [1.7.4] - 2019-06-19
203203

204-
### Added
204+
**Added**
205205

206206
- Added best effort method to the transaction class to call the AsyncTransaction class method.
207207
([#86])
208208

209-
### Fixed
209+
**Fixed**
210210

211211
- Fix broken tests ([#87])
212212

@@ -215,7 +215,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
215215

216216
## [1.7.3] - 2019-03-27
217217

218-
### Added
218+
**Added**
219219

220220
- added logic for ACL and upgraded the code to be usable with java 11 ([#80])
221221
- Added best effort flag, shorten ACL test timing to match changes in dgraph ([b4bf3bf])
@@ -225,12 +225,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
225225

226226
## [1.7.1] - 2018-10-31
227227

228-
### Added
228+
**Added**
229229

230230
- Added the doc and sample code for setting auth token ([#70])
231231
- Readonly support, separating integration tests and unit tests etc ([#71])
232232

233-
### Fixed
233+
**Fixed**
234234

235235
- Fix client selection behavior to match Go client. ([3bb5e23])
236236

@@ -287,7 +287,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/),
287287
[1.7.4]: https://github.com/hypermodeinc/dgraph4j/compare/v1.7.3...v1.7.4
288288
[1.7.3]: https://github.com/hypermodeinc/dgraph4j/compare/v1.7.0...v1.7.3
289289
[1.7.0]: https://github.com/hypermodeinc/dgraph4j/compare/v1.6.0...v1.7.0
290-
[1.7.0]: https://github.com/hypermodeinc/dgraph4j/compare/v1.6.0...v1.7.0
291290
[1.6.0]: https://github.com/hypermodeinc/dgraph4j/compare/v1.5.0...v1.6.0
292291
[1.5.0]: https://github.com/hypermodeinc/dgraph4j/compare/v1.4.2...v1.5.0
293292
[1.4.2]: https://github.com/hypermodeinc/dgraph4j/compare/v1.3.0...v1.4.2

Diff for: PUBLISHING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ document contains instructions to publish dgraph4j build artefacts to Maven cent
1818
- Create `~/.gradle/gradle.properties` and populate it with all the credentials
1919
- Get the credentials from `profile` section after loggin into [Sonatype](https://oss.sonatype.org/)
2020

21-
```
21+
```sh
2222
signing.keyId=<…keyId…>
2323
signing.password=<…password…>
2424
signing.secretKeyRingFile=</path/to/.gnupg/secring.gpg>

0 commit comments

Comments
 (0)