Skip to content

Commit c803b6e

Browse files
committed
fix(ci): added the missing permissions block
The workflow declared no `permissions:` block and fell back to the repository default, which grants only contents and packages read. The called module requests further scopes, so GitHub refused to start the run with "is only allowed <scope>: none". A called workflow's `permissions:` block is a request ceiling, not a grant - the token is minted from the caller's scopes. Added a block granting exactly the scopes the called module declares, no more.
1 parent a710a81 commit c803b6e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/teams-notifications.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ on:
3737
type: string
3838
default: "errors-only"
3939

40+
permissions:
41+
contents: read
42+
issues: read
43+
pull-requests: read
44+
actions: read
45+
4046
jobs:
4147
notify-teams:
4248
name: Send Teams Notification

0 commit comments

Comments
 (0)