Skip to content

Commit 41635c4

Browse files
committed
Add warning advising the check token permissions if action fails.
1 parent 2baa93d commit 41635c4

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

dist/index.js

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

dist/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.

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ async function run(): Promise<void> {
8888
throw new Error("Timeout exceeded while attempting to get Run ID");
8989
} catch (error) {
9090
core.error(`Failed to complete: ${error.message}`);
91+
core.warning("Does the token have the correct permissions?");
9192
error.stack && core.debug(error.stack);
9293
core.setFailed(error.message);
9394
}

0 commit comments

Comments
 (0)