Skip to content

Commit

Permalink
record?
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Mar 13, 2024
1 parent 17b8547 commit ded2327
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
19 changes: 8 additions & 11 deletions 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.

21 changes: 9 additions & 12 deletions src/correlation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type AnonymizedCorrelationHashes = {
run?: string;
run_differentiator?: string;
workflow?: string;
groups: Map<string, undefined | string>;
groups: Record<string, string | undefined>;
};

export function identify(): AnonymizedCorrelationHashes {
Expand Down Expand Up @@ -47,17 +47,14 @@ export function identify(): AnonymizedCorrelationHashes {
"GITHUB_RUN_NUMBER",
"GITHUB_RUN_ATTEMPT",
]),
groups: new Map([
["ci", "github-actions"],
[
"github_organization",
hashEnvironmentVariables([
"GITHUB_SERVER_URL",
"GITHUB_REPOSITORY_OWNER",
"GITHUB_REPOSITORY_OWNER_ID",
]),
],
]),
groups: {
ci: "github-actions",
github_organization: hashEnvironmentVariables([
"GITHUB_SERVER_URL",
"GITHUB_REPOSITORY_OWNER",
"GITHUB_REPOSITORY_OWNER_ID",
]),
},
};

actionsCore.debug("Correlation data:");
Expand Down

0 comments on commit ded2327

Please sign in to comment.