File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -19933,8 +19933,9 @@ function getTokensEndpoint(registryUrl) {
19933
19933
return `${registryUrl}/api/v1/trusted_publishing/tokens`;
19934
19934
}
19935
19935
function userAgentValue() {
19936
+ const packageName = package_default.name;
19936
19937
const packageVersion = package_default.version;
19937
- return `crates-io-auth-action /${packageVersion}`;
19938
+ return `${packageName} /${packageVersion}`;
19938
19939
}
19939
19940
function getUserAgent() {
19940
19941
const userAgent = userAgentValue();
Original file line number Diff line number Diff line change @@ -19914,8 +19914,9 @@ function getTokensEndpoint(registryUrl) {
19914
19914
return `${registryUrl}/api/v1/trusted_publishing/tokens`;
19915
19915
}
19916
19916
function userAgentValue() {
19917
+ const packageName = package_default.name;
19917
19918
const packageVersion = package_default.version;
19918
- return `crates-io-auth-action /${packageVersion}`;
19919
+ return `${packageName} /${packageVersion}`;
19919
19920
}
19920
19921
function getUserAgent() {
19921
19922
const userAgent = userAgentValue();
Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ export function getTokensEndpoint(registryUrl: string): string {
78
78
}
79
79
80
80
function userAgentValue ( ) : string {
81
+ const packageName : string = packageJson . name ;
81
82
const packageVersion : string = packageJson . version ;
82
- return `crates-io-auth-action /${ packageVersion } ` ;
83
+ return `${ packageName } /${ packageVersion } ` ;
83
84
}
84
85
85
86
export function getUserAgent ( ) : UserAgent {
You can’t perform that action at this time.
0 commit comments