Skip to content

Commit 542071d

Browse files
committed
chore: rename Exhort to Trustify DA
1 parent 5a55c16 commit 542071d

29 files changed

+298
-298
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT
5050
- name: Verify the project and create coverage report
5151
env:
52-
EXHORT_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
53-
EXHORT_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
52+
TRUSTIFY_DA_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
53+
TRUSTIFY_DA_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
run: |
5656
mvn verify -Pits,cov -B -ff

CONTRIBUTING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737

3838
### Good to know
3939

40-
* You can override the default backend url by setting the `EXHORT_DEV_MODE` environment variable/system property to true:
41-
* In case environment variable/System Property `EXHORT_DEV_MODE=true` - You can Override the default exhort backend by setting
42-
`DEV_EXHORT_BACKEND_URL` env variable/system property to the desired exhort backend instance address ( useful for tests).
43-
* In case `DEV_EXHORT_BACKEND_URL` is not set via environment variable/system property, then the default DEV exhort backend is picked.
44-
* In case `EXHORT_DEV_MODE=false` or not set at all levels, then default backend url ( exhort prod) is picked, regardless of the value of `DEV_EXHORT_BACKEND_URL`.
45-
* Environment variables takes precedence over System properties - for example, if System property `EXHORT_DEV_MODE=true`
46-
but environment variable `EXHORT_DEV_MODE=false` , then default exhort prod will be used anyway.
40+
* You can override the default backend url by setting the `TRUSTIFY_DA_DEV_MODE` environment variable/system property to true:
41+
* In case environment variable/System Property `TRUSTIFY_DA_DEV_MODE=true` - You can Override the default trustify-dependency-analytics backend by setting
42+
`DEV_TRUSTIFY_DA_BACKEND_URL` env variable/system property to the desired trustify-dependency-analytics backend instance address ( useful for tests).
43+
* In case `DEV_TRUSTIFY_DA_BACKEND_URL` is not set via environment variable/system property, then the default DEV trustify-dependency-analytics backend is picked.
44+
* In case `TRUSTIFY_DA_DEV_MODE=false` or not set at all levels, then default backend url ( trustify-dependency-analytics prod) is picked, regardless of the value of `DEV_TRUSTIFY_DA_BACKEND_URL`.
45+
* Environment variables takes precedence over System properties - for example, if System property `TRUSTIFY_DA_DEV_MODE=true`
46+
but environment variable `TRUSTIFY_DA_DEV_MODE=false` , then default trustify-dependency-analytics prod will be used anyway.
4747

4848
### OpenAPI Specifications
4949

50-
We use the Java generated library for the [Exhort OpenAPI spec][1] for deserialization of the Backend's
50+
We use the Java generated library for the [Trustify Dependency Analytics API Specification][1] for deserialization of the Backend's
5151
API responses.<br/>
5252

5353
When the [Backend's spec file][1] is modified, a new
@@ -97,10 +97,10 @@ $ mvn clean verify -Pits,dev
9797
```
9898

9999
Integration tests are executed against a mocked _Backend_ server.<br/>
100-
If you need to run against the actual _Backend_ server, use the _EXHORT_ITS_USE_REAL_API_ environment variable:
100+
If you need to run against the actual _Backend_ server, use the _TRUSTIFY_DA_ITS_USE_REAL_API_ environment variable:
101101

102102
```shell
103-
EXHORT_ITS_USE_REAL_API=true mvn clean verify -Pits
103+
TRUSTIFY_DA_ITS_USE_REAL_API=true mvn clean verify -Pits
104104
```
105105

106106
> TIP: When working on a new integration test project, it's helpful opening the IDE directly in the test project folder.
@@ -114,7 +114,7 @@ contribution. See the [DCO](DCO) file for details.
114114

115115
<!-- Real links -->
116116
[0]: https://www.conventionalcommits.org/en/v1.0.0/
117-
[1]: https://github.com/guacsec/trustify-da-api-spec/blob/main/api/v4/openapi.yaml
117+
[1]: https://github.com/guacsec/trustify-da-api-spec/blob/main/api/v5/openapi.yaml
118118

119119
<!-- Badge links -->
120120
[10]: https://badgen.net/badge/Java%20Version/11/5382a1

README.md

Lines changed: 59 additions & 59 deletions
Large diffs are not rendered by default.

src/main/java/com/redhat/exhort/image/ImageUtils.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939

4040
public class ImageUtils {
4141

42-
static final String EXHORT_SYFT_CONFIG_PATH = "EXHORT_SYFT_CONFIG_PATH";
43-
static final String EXHORT_SYFT_IMAGE_SOURCE = "EXHORT_SYFT_IMAGE_SOURCE";
44-
static final String EXHORT_IMAGE_PLATFORM = "EXHORT_IMAGE_PLATFORM";
45-
static final String EXHORT_IMAGE_OS = "EXHORT_IMAGE_OS";
46-
static final String EXHORT_IMAGE_ARCH = "EXHORT_IMAGE_ARCH";
47-
static final String EXHORT_IMAGE_VARIANT = "EXHORT_IMAGE_VARIANT";
48-
static final String EXHORT_SKOPEO_CONFIG_PATH = "EXHORT_SKOPEO_CONFIG_PATH";
49-
static final String EXHORT_IMAGE_SERVICE_ENDPOINT = "EXHORT_IMAGE_SERVICE_ENDPOINT";
42+
static final String TRUSTIFY_DA_SYFT_CONFIG_PATH = "TRUSTIFY_DA_SYFT_CONFIG_PATH";
43+
static final String TRUSTIFY_DA_SYFT_IMAGE_SOURCE = "TRUSTIFY_DA_SYFT_IMAGE_SOURCE";
44+
static final String TRUSTIFY_DA_IMAGE_PLATFORM = "TRUSTIFY_DA_IMAGE_PLATFORM";
45+
static final String TRUSTIFY_DA_IMAGE_OS = "TRUSTIFY_DA_IMAGE_OS";
46+
static final String TRUSTIFY_DA_IMAGE_ARCH = "TRUSTIFY_DA_IMAGE_ARCH";
47+
static final String TRUSTIFY_DA_IMAGE_VARIANT = "TRUSTIFY_DA_IMAGE_VARIANT";
48+
static final String TRUSTIFY_DA_SKOPEO_CONFIG_PATH = "TRUSTIFY_DA_SKOPEO_CONFIG_PATH";
49+
static final String TRUSTIFY_DA_IMAGE_SERVICE_ENDPOINT = "TRUSTIFY_DA_IMAGE_SERVICE_ENDPOINT";
5050
private static final String MEDIA_TYPE_DOCKER2_MANIFEST =
5151
"application/vnd.docker.distribution.manifest.v2+json";
5252
private static final String MEDIA_TYPE_DOCKER2_MANIFEST_LIST =
@@ -134,8 +134,8 @@ static Operations.ProcessExecOutput execSyft(ImageRef imageRef) {
134134
var docker = Operations.getCustomPathOrElse(DOCKER);
135135
var podman = Operations.getCustomPathOrElse(PODMAN);
136136

137-
var syftConfigPath = Environment.get(EXHORT_SYFT_CONFIG_PATH, "");
138-
var imageSource = Environment.get(EXHORT_SYFT_IMAGE_SOURCE, "");
137+
var syftConfigPath = Environment.get(TRUSTIFY_DA_SYFT_CONFIG_PATH, "");
138+
var imageSource = Environment.get(TRUSTIFY_DA_SYFT_IMAGE_SOURCE, "");
139139
SyftImageSource.getImageSource(imageSource);
140140

141141
var dockerPath =
@@ -204,19 +204,19 @@ static List<String> getSyftEnvs(String dockerPath, String podmanPath) {
204204
}
205205

206206
public static Platform getImagePlatform() {
207-
var platform = Environment.get(EXHORT_IMAGE_PLATFORM, "");
207+
var platform = Environment.get(TRUSTIFY_DA_IMAGE_PLATFORM, "");
208208
if (!platform.isEmpty()) {
209209
return new Platform(platform);
210210
}
211211

212-
var imageSource = Environment.get(EXHORT_SYFT_IMAGE_SOURCE, "");
212+
var imageSource = Environment.get(TRUSTIFY_DA_SYFT_IMAGE_SOURCE, "");
213213
SyftImageSource source = SyftImageSource.getImageSource(imageSource);
214214

215-
var os = Environment.get(EXHORT_IMAGE_OS, "");
215+
var os = Environment.get(TRUSTIFY_DA_IMAGE_OS, "");
216216
if (os.isEmpty()) {
217217
os = source.getOs();
218218
}
219-
var arch = Environment.get(EXHORT_IMAGE_ARCH, "");
219+
var arch = Environment.get(TRUSTIFY_DA_IMAGE_ARCH, "");
220220
if (arch.isEmpty()) {
221221
arch = source.getArch();
222222
}
@@ -225,7 +225,7 @@ public static Platform getImagePlatform() {
225225
return new Platform(os, arch, null);
226226
}
227227

228-
var variant = Environment.get(EXHORT_IMAGE_VARIANT, "");
228+
var variant = Environment.get(TRUSTIFY_DA_IMAGE_VARIANT, "");
229229
if (variant.isEmpty()) {
230230
variant = source.getVariant();
231231
}
@@ -424,8 +424,8 @@ static Map<Platform, String> getSingleImageDigest(ImageRef imageRef)
424424
static Operations.ProcessExecOutput execSkopeoInspect(ImageRef imageRef, boolean raw) {
425425
var skopeo = Operations.getExecutable(SKOPEO, ARG_VERSION);
426426

427-
var configPath = Environment.get(EXHORT_SKOPEO_CONFIG_PATH, "");
428-
var daemonHost = Environment.get(EXHORT_IMAGE_SERVICE_ENDPOINT, "");
427+
var configPath = Environment.get(TRUSTIFY_DA_SKOPEO_CONFIG_PATH, "");
428+
var daemonHost = Environment.get(TRUSTIFY_DA_IMAGE_SERVICE_ENDPOINT, "");
429429

430430
String[] cmd;
431431
if (daemonHost.isEmpty()) {

src/main/java/com/redhat/exhort/impl/ExhortApi.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
/** Concrete implementation of the Exhort {@link Api} Service. */
6565
public final class ExhortApi implements Api {
6666

67-
private static final String DEV_EXHORT_BACKEND_URL = "DEV_EXHORT_BACKEND_URL";
67+
private static final String DEV_TRUSTIFY_DA_BACKEND_URL = "DEV_TRUSTIFY_DA_BACKEND_URL";
6868

69-
private static final String EXHORT_DEV_MODE = "EXHORT_DEV_MODE";
69+
private static final String TRUSTIFY_DA_DEV_MODE = "TRUSTIFY_DA_DEV_MODE";
7070

71-
private static final String HTTP_VERSION_EXHORT_CLIENT = "HTTP_VERSION_EXHORT_CLIENT";
71+
private static final String HTTP_VERSION_TRUSTIFY_DA_CLIENT = "HTTP_VERSION_TRUSTIFY_DA_CLIENT";
7272

73-
private static final String EXHORT_PROXY_URL = "EXHORT_PROXY_URL";
73+
private static final String TRUSTIFY_DA_PROXY_URL = "TRUSTIFY_DA_PROXY_URL";
7474

7575
private static final Logger LOG = LoggersFactory.getLogger(ExhortApi.class.getName());
7676

@@ -79,7 +79,7 @@ public final class ExhortApi implements Api {
7979
public static final String RHDA_TOKEN_HEADER = "rhda-token";
8080
public static final String RHDA_SOURCE_HEADER = "rhda-source";
8181
public static final String RHDA_OPERATION_TYPE_HEADER = "rhda-operation-type";
82-
public static final String EXHORT_REQUEST_ID_HEADER_NAME = "ex-request-id";
82+
public static final String TRUSTIFY_DA_REQUEST_ID_HEADER_NAME = "ex-request-id";
8383

8484
private final String endpoint;
8585

@@ -95,14 +95,14 @@ private enum TokenProvider {
9595
/**
9696
* Get the expected environment variable name.
9797
*
98-
* @return i.e. EXHORT_SNYK_TOKEN
98+
* @return i.e. TRUSTIFY_DA_SNYK_TOKEN
9999
*/
100100
String getVarName() {
101-
return String.format("EXHORT_%s_TOKEN", this);
101+
return String.format("TRUSTIFY_DA_%s_TOKEN", this);
102102
}
103103

104104
String getUserVarName() {
105-
return String.format("EXHORT_%s_USER", this);
105+
return String.format("TRUSTIFY_DA_%s_USER", this);
106106
}
107107

108108
/**
@@ -137,7 +137,7 @@ public ExhortApi() {
137137
* @return i.e. HttpClient.Version.HTTP_1.1
138138
*/
139139
static HttpClient.Version getHttpVersion() {
140-
var version = Environment.get(HTTP_VERSION_EXHORT_CLIENT);
140+
var version = Environment.get(HTTP_VERSION_TRUSTIFY_DA_CLIENT);
141141
return (version != null && version.contains("2"))
142142
? HttpClient.Version.HTTP_2
143143
: HttpClient.Version.HTTP_1_1;
@@ -147,32 +147,32 @@ static HttpClient.Version getHttpVersion() {
147147
// // temp system property - as long as prod exhort url not implemented the multi-source v4
148148
// endpoint, this
149149
// property needs to be true
150-
// System.setProperty("EXHORT_DEV_MODE","true");
150+
// System.setProperty("TRUSTIFY_DA_DEV_MODE","true");
151151
commonHookBeginning(true);
152152
this.client = client;
153153
this.mapper = new ObjectMapper().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
154154
// Take default from config.properties in case client didn't override DEV MODE
155-
if (Environment.get(EXHORT_DEV_MODE) == null) {
155+
if (Environment.get(TRUSTIFY_DA_DEV_MODE) == null) {
156156
try {
157157
InputStream exhortConfig =
158158
this.getClass().getClassLoader().getResourceAsStream("config.properties");
159159
if (exhortConfig == null) {
160160
LOG.info(
161161
"config.properties not found on the class path, fallback to default DEV MODE ="
162162
+ " false");
163-
System.setProperty(EXHORT_DEV_MODE, "false");
163+
System.setProperty(TRUSTIFY_DA_DEV_MODE, "false");
164164
} else {
165165
Properties properties = new Properties();
166166
properties.load(exhortConfig);
167-
System.setProperty(EXHORT_DEV_MODE, (String) properties.get(EXHORT_DEV_MODE));
167+
System.setProperty(TRUSTIFY_DA_DEV_MODE, (String) properties.get(TRUSTIFY_DA_DEV_MODE));
168168
}
169169
} catch (IOException e) {
170170
LOG.info(
171171
String.format(
172172
"Error loading config.properties , fallback to set default property DEV MODE ="
173173
+ " false, Error message = %s",
174174
e.getMessage()));
175-
System.setProperty(EXHORT_DEV_MODE, "false");
175+
System.setProperty(TRUSTIFY_DA_DEV_MODE, "false");
176176
}
177177
}
178178

@@ -181,14 +181,14 @@ static HttpClient.Version getHttpVersion() {
181181

182182
public static HttpClient createHttpClient() {
183183
HttpClient.Builder builder = HttpClient.newBuilder().version(getHttpVersion());
184-
String proxyUrl = Environment.get(EXHORT_PROXY_URL);
184+
String proxyUrl = Environment.get(TRUSTIFY_DA_PROXY_URL);
185185
if (proxyUrl != null && !proxyUrl.isBlank()) {
186186
try {
187187
URI proxyUri = URI.create(proxyUrl);
188188
builder.proxy(
189189
ProxySelector.of(new InetSocketAddress(proxyUri.getHost(), proxyUri.getPort())));
190190
} catch (IllegalArgumentException e) {
191-
LOG.warning("Invalid EXHORT_PROXY_URL: " + proxyUrl + ", using direct connection");
191+
LOG.warning("Invalid TRUSTIFY_DA_PROXY_URL: " + proxyUrl + ", using direct connection");
192192
}
193193
}
194194
return builder.build();
@@ -224,19 +224,19 @@ private static String getClientRequestId() {
224224

225225
public String getExhortUrl() {
226226
String endpoint;
227-
if (Environment.getBoolean(EXHORT_DEV_MODE, false)) {
228-
endpoint = Environment.get(DEV_EXHORT_BACKEND_URL, DEFAULT_ENDPOINT_DEV);
227+
if (Environment.getBoolean(TRUSTIFY_DA_DEV_MODE, false)) {
228+
endpoint = Environment.get(DEV_TRUSTIFY_DA_BACKEND_URL, DEFAULT_ENDPOINT_DEV);
229229

230230
} else {
231231
endpoint = DEFAULT_ENDPOINT;
232232
}
233233
if (debugLoggingIsNeeded()) {
234234
LOG.info(
235235
String.format(
236-
"EXHORT_DEV_MODE=%s,DEV_EXHORT_BACKEND_URL=%s, Chosen Backend URL=%s ,"
236+
"TRUSTIFY_DA_DEV_MODE=%s,DEV_TRUSTIFY_DA_BACKEND_URL=%s, Chosen Backend URL=%s ,"
237237
+ " DEFAULT_ENDPOINT_DEV=%s , DEFAULT_ENDPOINT=%s",
238-
Environment.getBoolean(EXHORT_DEV_MODE, false),
239-
Environment.get(DEV_EXHORT_BACKEND_URL, DEFAULT_ENDPOINT_DEV),
238+
Environment.getBoolean(TRUSTIFY_DA_DEV_MODE, false),
239+
Environment.get(DEV_TRUSTIFY_DA_BACKEND_URL, DEFAULT_ENDPOINT_DEV),
240240
endpoint,
241241
DEFAULT_ENDPOINT_DEV,
242242
DEFAULT_ENDPOINT));
@@ -391,7 +391,7 @@ private AnalysisReport getAnalysisReportFromResponse(
391391

392392
private static void logExhortRequestId(HttpResponse<?> response) {
393393
Optional<String> headerExRequestId =
394-
response.headers().allValues(EXHORT_REQUEST_ID_HEADER_NAME).stream().findFirst();
394+
response.headers().allValues(TRUSTIFY_DA_REQUEST_ID_HEADER_NAME).stream().findFirst();
395395
headerExRequestId.ifPresent(
396396
value ->
397397
LOG.info(
@@ -402,7 +402,7 @@ private static void logExhortRequestId(HttpResponse<?> response) {
402402
}
403403

404404
public static boolean debugLoggingIsNeeded() {
405-
return Environment.getBoolean("EXHORT_DEBUG", false);
405+
return Environment.getBoolean("TRUSTIFY_DA_DEBUG", false);
406406
}
407407

408408
@Override

src/main/java/com/redhat/exhort/providers/GoModulesProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*/
5151
public final class GoModulesProvider extends Provider {
5252

53-
public static final String PROP_EXHORT_GO_MVS_LOGIC_ENABLED = "EXHORT_GO_MVS_LOGIC_ENABLED";
53+
public static final String PROP_TRUSTIFY_DA_GO_MVS_LOGIC_ENABLED = "TRUSTIFY_DA_GO_MVS_LOGIC_ENABLED";
5454
private static final Logger log = LoggersFactory.getLogger(GoModulesProvider.class.getName());
5555
public static final String DEFAULT_MAIN_VERSION = "v0.0.0";
5656
private final String goExecutable;
@@ -276,7 +276,7 @@ private Sbom buildSbomFromGraph(
276276
startingIndex += deps.size();
277277
}
278278
}
279-
boolean goMvsLogicEnabled = Environment.getBoolean(PROP_EXHORT_GO_MVS_LOGIC_ENABLED, true);
279+
boolean goMvsLogicEnabled = Environment.getBoolean(PROP_TRUSTIFY_DA_GO_MVS_LOGIC_ENABLED, true);
280280
if (goMvsLogicEnabled) {
281281
edges = getFinalPackagesVersionsForModule(edges, manifestPath);
282282
}

src/main/java/com/redhat/exhort/providers/GradleProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private String extractPackageName(String line) {
221221

222222
private Path getDependencies(Path manifestPath) throws IOException {
223223
// create a temp file for storing the dependency tree in
224-
var tempFile = Files.createTempFile("exhort_graph_", null);
224+
var tempFile = Files.createTempFile("TRUSTIFY_DA_graph_", null);
225225
// the command will create the dependency tree in the temp file
226226
String gradleCommand = gradleExecutable + " dependencies";
227227

src/main/java/com/redhat/exhort/providers/JavaMavenProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Content provideStack() throws IOException {
7171
// execute the clean command
7272
Operations.runProcess(manifest.getParent(), mvnCleanCmd.toArray(String[]::new), mvnEnvs);
7373
// create a temp file for storing the dependency tree in
74-
var tmpFile = Files.createTempFile("exhort_dot_graph_", null);
74+
var tmpFile = Files.createTempFile("TRUSTIFY_DA_dot_graph_", null);
7575
// the tree command will build the project and create the dependency tree in the temp file
7676
var mvnTreeCmd =
7777
buildMvnCommandArgs(
@@ -127,7 +127,7 @@ public Content provideComponent() throws IOException {
127127
}
128128

129129
private Content generateSbomFromEffectivePom() throws IOException {
130-
var tmpEffPom = Files.createTempFile("exhort_eff_pom_", ".xml");
130+
var tmpEffPom = Files.createTempFile("TRUSTIFY_DA_eff_pom_", ".xml");
131131
var mvnEffPomCmd =
132132
buildMvnCommandArgs(
133133
"clean",

src/main/java/com/redhat/exhort/providers/PythonPipProvider.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ private PackageURL toPurl(String name, String version) {
210210
private PythonControllerBase getPythonController() {
211211
String pythonPipBinaries;
212212
boolean useVirtualPythonEnv;
213-
if (!Environment.get(PythonControllerBase.PROP_EXHORT_PIP_SHOW, "").trim().isEmpty()
214-
&& !Environment.get(PythonControllerBase.PROP_EXHORT_PIP_FREEZE, "").trim().isEmpty()) {
213+
if (!Environment.get(PythonControllerBase.PROP_TRUSTIFY_DA_PIP_SHOW, "").trim().isEmpty()
214+
&& !Environment.get(PythonControllerBase.PROP_TRUSTIFY_DA_PIP_FREEZE, "").trim().isEmpty()) {
215215
pythonPipBinaries = "python;;pip";
216216
useVirtualPythonEnv = false;
217217
} else {
218218
pythonPipBinaries = getExecutable("python", "--version");
219219
useVirtualPythonEnv =
220-
Environment.getBoolean(PythonControllerBase.PROP_EXHORT_PYTHON_VIRTUAL_ENV, false);
220+
Environment.getBoolean(PythonControllerBase.PROP_TRUSTIFY_DA_PYTHON_VIRTUAL_ENV, false);
221221
}
222222

223223
String[] parts = pythonPipBinaries.split(";;");

src/main/java/com/redhat/exhort/sbom/CycloneDXSbom.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
public class CycloneDXSbom implements Sbom {
4646

47-
private static final String EXHORT_IGNORE_METHOD = "EXHORT_IGNORE_METHOD";
47+
private static final String TRUSTIFY_DA_IGNORE_METHOD = "TRUSTIFY_DA_IGNORE_METHOD";
4848
private final Logger log = LoggersFactory.getLogger(this.getClass().getName());
4949
private static final Version VERSION = Version.VERSION_14;
5050
private String exhortIgnoreMethod;
@@ -119,7 +119,7 @@ public <T> Sbom filterIgnoredDeps(Collection<T> ignoredDeps) {
119119
}
120120

121121
private String getExhortIgnoreMethod() {
122-
var val = Environment.get(EXHORT_IGNORE_METHOD);
122+
var val = Environment.get(TRUSTIFY_DA_IGNORE_METHOD);
123123
return val != null ? val.trim().toLowerCase() : null;
124124
}
125125

0 commit comments

Comments
 (0)