+10
-1
@@ -175,6 +175,7 @@ class HttpClient {
|
||||
this._keepAlive = false;
|
||||
this._disposed = false;
|
||||
this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
|
||||
console.log(this.userAgent);
|
||||
this.handlers = handlers || [];
|
||||
this.requestOptions = requestOptions;
|
||||
if (requestOptions) {
|
||||
@@ -656,6 +657,9 @@ class HttpClient {
|
||||
}
|
||||
_getUserAgentWithOrchestrationId(userAgent) {
|
||||
const baseUserAgent = userAgent || 'actions/http-client';
|
||||
console.log('---------------------------');
|
||||
console.log(baseUserAgent);
|
||||
console.log('---------------------------');
|
||||
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
|
||||
if (orchId) {
|
||||
// Sanitize the orchestration ID to ensure it contains only valid characters
|
||||
@@ -109217,6 +109221,7 @@ class HttpClient {
|
||||
this._keepAlive = false;
|
||||
this._disposed = false;
|
||||
this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
|
||||
console.log(this.userAgent);
|
||||
this.handlers = handlers || [];
|
||||
this.requestOptions = requestOptions;
|
||||
if (requestOptions) {
|
||||
@@ -109698,6 +109703,9 @@ class HttpClient {
|
||||
}
|
||||
_getUserAgentWithOrchestrationId(userAgent) {
|
||||
const baseUserAgent = userAgent || 'actions/http-client';
|
||||
console.log('---------------------------');
|
||||
console.log(baseUserAgent);
|
||||
console.log('---------------------------');
|
||||
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
|
||||
if (orchId) {
|
||||
// Sanitize the orchestration ID to ensure it contains only valid characters
|
||||
@@ -116133,7 +116141,8 @@ const store_DEFAULT_RETRY_COUNT = 5;
|
||||
const writeAttestation = (attestation_1, token_1, ...args_1) => store_awaiter(void 0, [attestation_1, token_1, ...args_1], void 0, function* (attestation, token, options = {}) {
|
||||
var _a;
|
||||
const retries = (_a = options.retry) !== null && _a !== void 0 ? _a : store_DEFAULT_RETRY_COUNT;
|
||||
const octokit = getOctokit(token, { retry: { retries } }, retry);
|
||||
const octokit = getOctokit(token, { retry: { retries }, userAgent: "octokit " + process.env['ACTIONS_ORCHESTRATION_ID'] }, retry);
|
||||
|
||||
try {
|
||||
const response = yield octokit.request(CREATE_ATTESTATION_REQUEST, {
|
||||
owner: github_context.repo.owner,
|
||||
|
||||
Reference in New Issue
Block a user