Skip to content

Commit 57f34a1

Browse files
authored
Merge pull request #902 from github/aeisenberg/permissions
Add a permissions block for generated workflows
2 parents a9da9fc + 941e382 commit 57f34a1

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

lib/actions-util.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.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.

lib/upload-lib.js

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

lib/upload-lib.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.

src/actions-util.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,12 @@ export async function sendStatusReport<S extends StatusReportBase>(
600600
): Promise<boolean> {
601601
const statusReportJSON = JSON.stringify(statusReport);
602602
core.debug(`Sending status report: ${statusReportJSON}`);
603+
// If in test mode we don't want to upload the results
604+
const testMode = process.env["TEST_MODE"] === "true" || false;
605+
if (testMode) {
606+
core.debug("In test mode. Status reports are not uploaded.");
607+
return true;
608+
}
603609

604610
const nwo = getRequiredEnvParam("GITHUB_REPOSITORY");
605611
const [owner, repo] = nwo.split("/");

src/upload-lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ async function uploadPayload(
100100
// If in test mode we don't want to upload the results
101101
const testMode = process.env["TEST_MODE"] === "true" || false;
102102
if (testMode) {
103+
logger.debug("In test mode. Results are not uploaded.");
103104
return;
104105
}
105106

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy