File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -27314,9 +27314,8 @@ function getTokensEndpoint(registryUrl) {
27314
27314
return `${registryUrl}/api/v1/trusted_publishing/tokens`;
27315
27315
}
27316
27316
function userAgentValue() {
27317
- const version = "v1";
27318
- // TODO: read the package name and version from package.json
27319
- return `crates-io-auth-action/${version}`;
27317
+ const packageVersion = "1.0.0";
27318
+ return `crates-io-auth-action/${packageVersion}`;
27320
27319
}
27321
27320
function getUserAgent() {
27322
27321
const userAgent = userAgentValue();
Original file line number Diff line number Diff line change @@ -27297,9 +27297,8 @@ function getTokensEndpoint(registryUrl) {
27297
27297
return `${registryUrl}/api/v1/trusted_publishing/tokens`;
27298
27298
}
27299
27299
function userAgentValue() {
27300
- const version = "v1";
27301
- // TODO: read the package name and version from package.json
27302
- return `crates-io-auth-action/${version}`;
27300
+ const packageVersion = "1.0.0";
27301
+ return `crates-io-auth-action/${packageVersion}`;
27303
27302
}
27304
27303
function getUserAgent() {
27305
27304
const userAgent = userAgentValue();
Original file line number Diff line number Diff line change @@ -77,11 +77,8 @@ export function getTokensEndpoint(registryUrl: string): string {
77
77
}
78
78
79
79
function userAgentValue ( ) : string {
80
- const version = "v1" ;
81
-
82
- // TODO: read the package name and version from package.json
83
-
84
- return `crates-io-auth-action/${ version } ` ;
80
+ const packageVersion = "1.0.0" ;
81
+ return `crates-io-auth-action/${ packageVersion } ` ;
85
82
}
86
83
87
84
export function getUserAgent ( ) : UserAgent {
You can’t perform that action at this time.
0 commit comments