Skip to content

Commit

Permalink
anonymize non-git project id (#3753)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jun 28, 2022
1 parent 0cf0b2e commit cabd9dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-fireants-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/telemetry': patch
---

Fix issue where project id fallback was not getting hashed
2 changes: 1 addition & 1 deletion packages/telemetry/src/project-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ export function getProjectInfo(isCI: boolean): ProjectInfo {
}
return {
isGit: false,
anonymousProjectId: isCI ? '' : process.cwd(),
anonymousProjectId: isCI ? '' : createAnonymousValue(process.cwd()),
};
}

0 comments on commit cabd9dc

Please sign in to comment.