Skip to content

Commit a7bb9c2

Browse files
committed
Declare permissions for labeler-train workflow and parse pull_page_size
1 parent 3d594d1 commit a7bb9c2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/labeler-train.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ on:
4545
required: true
4646
default: "staging"
4747

48+
permissions:
49+
issues: read
50+
pull-requests: read
51+
actions: write
52+
4853
jobs:
4954
# Without specifying a pageSize of 1 for downloading pull requests, the requests time out
5055
# Directly invoking the individual workflows until https://github.com/dotnet/issue-labeler/issues/97 is addressed
@@ -111,7 +116,7 @@ jobs:
111116
with:
112117
data_cache_key: ${{ inputs.cache_key_suffix }}
113118
pull_limit: ${{ inputs.data_limit && fromJSON(inputs.data_limit) || 0 }}
114-
page_size: ${{ inputs.pull_page_size }}
119+
page_size: ${{ inputs.pull_page_size && fromJSON(inputs.pull_page_size) || 1 }}
115120
label_prefix: "area-"
116121

117122
labeler-train-pulls:

0 commit comments

Comments
 (0)