Skip to content

Commit

Permalink
Set DETSYS_CORRELATION with our hashes before running hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Apr 11, 2024
1 parent 8f9d516 commit 11b68d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ export class IdsToolbox {

private async executeAsync(): Promise<void> {
try {
process.env.DETSYS_CORRELATION = JSON.stringify(
this.getCorrelationHashes(),
);

if (this.executionPhase === "main" && this.hookMain) {
await this.hookMain();
} else if (this.executionPhase === "post" && this.hookPost) {
Expand Down

0 comments on commit 11b68d5

Please sign in to comment.