Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit a0fc860

Browse files
committed
Build outputs
1 parent a198078 commit a0fc860

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

dist/main/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93696,10 +93696,7 @@ function submitDependencyGraphs(dependencyGraphFiles) {
9369693696
}
9369793697
catch (error) {
9369893698
if (error instanceof request_error_1.RequestError) {
93699-
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
93700-
core.warning(`Failed to submit dependency graph ${relativeJsonFile}.\n` +
93701-
"Please ensure that the 'contents: write' permission is available for the workflow job.\n" +
93702-
"Note that this permission is never available for a 'pull_request' trigger from a repository fork.");
93699+
core.warning(buildWarningMessage(jsonFile, error));
9370393700
}
9370493701
else {
9370593702
throw error;
@@ -93708,6 +93705,17 @@ function submitDependencyGraphs(dependencyGraphFiles) {
9370893705
}
9370993706
});
9371093707
}
93708+
function buildWarningMessage(jsonFile, error) {
93709+
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
93710+
const mainWarning = `Failed to submit dependency graph ${relativeJsonFile}.\n${String(error)}`;
93711+
if (error.message === 'Resource not accessible by integration') {
93712+
return `${mainWarning}
93713+
Please ensure that the 'contents: write' permission is available for the workflow job.
93714+
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
93715+
`;
93716+
}
93717+
return mainWarning;
93718+
}
9371193719
function submitDependencyGraphFile(jsonFile) {
9371293720
return __awaiter(this, void 0, void 0, function* () {
9371393721
const octokit = getOctokit();

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93696,10 +93696,7 @@ function submitDependencyGraphs(dependencyGraphFiles) {
9369693696
}
9369793697
catch (error) {
9369893698
if (error instanceof request_error_1.RequestError) {
93699-
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
93700-
core.warning(`Failed to submit dependency graph ${relativeJsonFile}.\n` +
93701-
"Please ensure that the 'contents: write' permission is available for the workflow job.\n" +
93702-
"Note that this permission is never available for a 'pull_request' trigger from a repository fork.");
93699+
core.warning(buildWarningMessage(jsonFile, error));
9370393700
}
9370493701
else {
9370593702
throw error;
@@ -93708,6 +93705,17 @@ function submitDependencyGraphs(dependencyGraphFiles) {
9370893705
}
9370993706
});
9371093707
}
93708+
function buildWarningMessage(jsonFile, error) {
93709+
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
93710+
const mainWarning = `Failed to submit dependency graph ${relativeJsonFile}.\n${String(error)}`;
93711+
if (error.message === 'Resource not accessible by integration') {
93712+
return `${mainWarning}
93713+
Please ensure that the 'contents: write' permission is available for the workflow job.
93714+
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
93715+
`;
93716+
}
93717+
return mainWarning;
93718+
}
9371193719
function submitDependencyGraphFile(jsonFile) {
9371293720
return __awaiter(this, void 0, void 0, function* () {
9371393721
const octokit = getOctokit();

dist/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)