chore: bump pinned Bun to 1.3.14 (#1312)

* chore: bump pinned Bun to 1.3.14

* style: apply prettier to actor/permissions files
This commit is contained in:
Ashwin Bhat
2026-05-14 18:55:04 -04:00
committed by GitHub
parent 9eb125afe3
commit acfa366ca8
5 changed files with 15 additions and 19 deletions
+1 -3
View File
@@ -60,9 +60,7 @@ export async function checkHumanActor(
(error.message.includes("Not Found") ||
error.message.includes("is not a user"))
) {
const botName = githubContext.actor
.toLowerCase()
.replace(/\[bot\]$/, "");
const botName = githubContext.actor.toLowerCase().replace(/\[bot\]$/, "");
throw new Error(
`Workflow initiated by non-human actor: ${botName} (actor not found on GitHub). Add bot to allowed_bots list or use '*' to allow all bots.`,
);
+1 -4
View File
@@ -102,10 +102,7 @@ export async function checkWritePermissions(
// Handle 404 errors for non-user actors (e.g. GitHub Apps like Copilot
// whose GITHUB_ACTOR doesn't end with [bot]).
// The collaborator permission API only works for user accounts.
if (
error instanceof Error &&
error.message.includes("is not a user")
) {
if (error instanceof Error && error.message.includes("is not a user")) {
core.info(
`Actor ${actor} is not a GitHub user (likely a GitHub App). Checking allowed_bots...`,
);