Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/maven/main/com.google.googlejavaf…
Browse files Browse the repository at this point in the history
…ormat-google-java-format-1.23.0
  • Loading branch information
n1ckl0sk0rtge authored Sep 19, 2024
2 parents ae650e5 + 48837a4 commit 8b13d07
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
pull_request:
branches: [ "main" ]
release:
types: [ "released" ]
types: [ "published" ]
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
pull_request:
branches: [ "main" ]
release:
types: [ "released" ]
types: [ "published" ]
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<jackson.version>2.17.2</jackson.version>
<cyclonedx-maven-plugin.version>2.8.0</cyclonedx-maven-plugin.version>

<sonar.crypto.plugin.version>1.2.0</sonar.crypto.plugin.version>
<sonar.crypto.plugin.version>1.3.0</sonar.crypto.plugin.version>
<sonar.plugin.api.version>9.17.0.587</sonar.plugin.api.version>
<sonar.plugin.api.impl.version>10.4.1.88267</sonar.plugin.api.impl.version>
<!-- language parser versions -->
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/ibm/resources/v1/ScannerResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
package com.ibm.resources.v1;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ibm.Utils;
Expand Down Expand Up @@ -266,7 +265,7 @@ private Optional<JsonNode> runScan(
.scan(iMessageDispatcher, clonedProject.cloneDir, scanRequest);
try {
return scanResult.toJson();
} catch (JsonProcessingException jpe) {
} catch (Exception jpe) {
LOG.error("Cannot parse CBOM", jpe);
}
return Optional.empty();
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/ibm/scan/IScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.Optional;
import javax.annotation.Nonnull;
import org.cyclonedx.Version;
import org.cyclonedx.exception.GeneratorException;
import org.cyclonedx.generators.BomGeneratorFactory;
import org.cyclonedx.generators.json.BomJsonGenerator;
import org.cyclonedx.model.Bom;
Expand Down Expand Up @@ -84,7 +85,7 @@ public void setDuration(long duration) {
}

@Nonnull
public Optional<JsonNode> toJson() throws JsonProcessingException {
public Optional<JsonNode> toJson() throws JsonProcessingException, GeneratorException {
final ObjectMapper mapper = new ObjectMapper();
if (bom != null) {
final BomJsonGenerator bomGenerator =
Expand Down

0 comments on commit 8b13d07

Please sign in to comment.