Skip to content

Commit

Permalink
debug print the correlation data
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 13, 2024
1 parent 25d5743 commit 76946ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/correlation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type AnonymizedCorrelationHashes = {
};

export function identify(): AnonymizedCorrelationHashes {
return {
const ident = {
correlation_source: "github-actions",

repository: hashEnvironmentVariables([
Expand Down Expand Up @@ -59,6 +59,11 @@ export function identify(): AnonymizedCorrelationHashes {
],
]),
};

actionsCore.debug("Correlation data:");
actionsCore.debug(JSON.stringify(ident, null, 2));

return ident;
}

function hashEnvironmentVariables(variables: string[]): undefined | string {
Expand Down

0 comments on commit 76946ea

Please sign in to comment.