Loading sources/package-lock.json −1 Changes for sources/package-lock.json: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", Loading sources/package.json −1 Changes for sources/package.json: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", Loading sources/src/dependency-graph.ts +2 −3 Changes for sources/src/dependency-graph.ts: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ import * as github from '@actions/github' import * as glob from '@actions/glob' import {DefaultArtifactClient} from '@actions/artifact' import {GitHub} from '@actions/github/lib/utils' import {RequestError} from '@octokit/request-error' import type {PullRequestEvent} from '@octokit/webhooks-types' import * as path from 'path' Loading Loading @@ -191,7 +190,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise<v try { await submitDependencyGraphFile(dependencyGraphFile) } catch (error) { if (error instanceof RequestError) { if (error instanceof Error && error.name === 'HttpError') { error.message = translateErrorMessage(dependencyGraphFile, error) } throw error Loading @@ -199,7 +198,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise<v } } function translateErrorMessage(jsonFile: string, error: RequestError): string { function translateErrorMessage(jsonFile: string, error: Error): string { const relativeJsonFile = getRelativePathFromWorkspace(jsonFile) const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}` if (error.message === 'Resource not accessible by integration') { Loading sources/src/job-summary.ts +2 −3 Changes for sources/src/job-summary.ts: 2 added lines, 3 removed lines. Original line number Diff line number Diff line import * as core from '@actions/core' import * as github from '@actions/github' import {RequestError} from '@octokit/request-error' import {BuildResults, BuildResult} from './build-results' import {SummaryConfig, getActionId, getGithubToken} from './configuration' Loading Loading @@ -66,7 +65,7 @@ ${jobSummary}` body: prComment }) } catch (error) { if (error instanceof RequestError) { if (error instanceof Error && error.name === 'HttpError') { core.warning(buildWarningMessage(error)) } else { throw error Loading @@ -74,7 +73,7 @@ ${jobSummary}` } } function buildWarningMessage(error: RequestError): string { function buildWarningMessage(error: Error): string { const mainWarning = `Failed to generate PR comment.\n${String(error)}` if (error.message === 'Resource not accessible by integration') { return `${mainWarning} Loading Loading
sources/package-lock.json −1 Changes for sources/package-lock.json: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", Loading
sources/package.json −1 Changes for sources/package.json: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -40,7 +40,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", Loading
sources/src/dependency-graph.ts +2 −3 Changes for sources/src/dependency-graph.ts: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ import * as github from '@actions/github' import * as glob from '@actions/glob' import {DefaultArtifactClient} from '@actions/artifact' import {GitHub} from '@actions/github/lib/utils' import {RequestError} from '@octokit/request-error' import type {PullRequestEvent} from '@octokit/webhooks-types' import * as path from 'path' Loading Loading @@ -191,7 +190,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise<v try { await submitDependencyGraphFile(dependencyGraphFile) } catch (error) { if (error instanceof RequestError) { if (error instanceof Error && error.name === 'HttpError') { error.message = translateErrorMessage(dependencyGraphFile, error) } throw error Loading @@ -199,7 +198,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise<v } } function translateErrorMessage(jsonFile: string, error: RequestError): string { function translateErrorMessage(jsonFile: string, error: Error): string { const relativeJsonFile = getRelativePathFromWorkspace(jsonFile) const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}` if (error.message === 'Resource not accessible by integration') { Loading
sources/src/job-summary.ts +2 −3 Changes for sources/src/job-summary.ts: 2 added lines, 3 removed lines. Original line number Diff line number Diff line import * as core from '@actions/core' import * as github from '@actions/github' import {RequestError} from '@octokit/request-error' import {BuildResults, BuildResult} from './build-results' import {SummaryConfig, getActionId, getGithubToken} from './configuration' Loading Loading @@ -66,7 +65,7 @@ ${jobSummary}` body: prComment }) } catch (error) { if (error instanceof RequestError) { if (error instanceof Error && error.name === 'HttpError') { core.warning(buildWarningMessage(error)) } else { throw error Loading @@ -74,7 +73,7 @@ ${jobSummary}` } } function buildWarningMessage(error: RequestError): string { function buildWarningMessage(error: Error): string { const mainWarning = `Failed to generate PR comment.\n${String(error)}` if (error.message === 'Resource not accessible by integration') { return `${mainWarning} Loading