Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
drata committed Jul 12, 2024
1 parent de4e11b commit a3085e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/apis/models/pipelineResults.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DesignGap } from "./designGap";
export interface PipelineResults {
designGaps: DesignGap[];
excludedFindings: DesignGap[];
}
9 changes: 6 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32087,7 +32087,7 @@ class Api {
.catch((error) => {
if (error.response.status === 404) {
resolve({
results: { designGaps: [] },
results: { designGaps: [], excludedFindings: [] },
status: error.response.status,
});
}
Expand Down Expand Up @@ -32312,7 +32312,7 @@ class ActionService {
}
async checkIfResultsAreAvailable(timeoutInSeconds, runId) {
let response = {
results: { designGaps: [] },
results: { designGaps: [], excludedFindings: [] },
status: 0,
};
let retries = timeoutInSeconds / 5;
Expand Down Expand Up @@ -32359,6 +32359,9 @@ class ActionService {
const colorCode = actionResult ? "32" : "31";
core.info("------------------------------------------------------------------");
core.info(` \u001B[${colorCode}mCritical: ${grouped["Critical"]?.length ?? 0} High: ${grouped["High"]?.length ?? 0} Moderate: ${grouped["Moderate"]?.length ?? 0} Low: ${grouped["Low"]?.length ?? 0} `);
if (results.excludedFindings?.length > 0) {
core.info(`${results.excludedFindings.length} issue(s) have been excluded from this run`);
}
core.info("------------------------------------------------------------------");
return actionResult;
}
Expand All @@ -32370,7 +32373,7 @@ class ActionService {
environmentMap.set("app-04", "app-04.dev");
environmentMap.set("production", "app");
environmentMap.set("qa", "app.qa");
const identifier = environmentMap.get(this.configParams?.environment ?? "");
const identifier = environmentMap.get(this.configParams?.environment ?? "production");
return `https://${identifier}.drata.com/compliance/monitoring/pipeline/${pipelineId}/run/${runId}`;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit a3085e6

Please sign in to comment.