Skip to content

Declare permissions for labeler-train workflow. Parse the pull_page_size input. #11083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/labeler-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ on:
required: true
default: "staging"

permissions:
issues: read
pull-requests: read
actions: write

jobs:
# Without specifying a pageSize of 1 for downloading pull requests, the requests time out
# Directly invoking the individual workflows until https://github.com/dotnet/issue-labeler/issues/97 is addressed
Expand All @@ -68,10 +73,6 @@ jobs:
# threshold: 0.40

build-predictor:
permissions:
issues: read
pull-requests: read
actions: write
uses: dotnet/issue-labeler/.github/workflows/build-predictor.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1

labeler-download-issues:
Expand Down Expand Up @@ -111,11 +112,11 @@ jobs:
permissions:
pull-requests: read
actions: write
uses: dotnet/issue-labeler/.github/workflows/download-pulls.yml@main
uses: dotnet/issue-labeler/.github/workflows/download-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
with:
data_cache_key: ${{ inputs.cache_key_suffix }}
pull_limit: ${{ inputs.data_limit && fromJSON(inputs.data_limit) || 0 }}
page_size: ${{ inputs.pull_page_size }}
page_size: ${{ inputs.pull_page_size && fromJSON(inputs.pull_page_size) || 1 }}
label_prefix: "area-"

labeler-train-pulls:
Expand Down