Skip to content

Commit

Permalink
Enforce PR labels: change permissions to read (#52980)
Browse files Browse the repository at this point in the history
  • Loading branch information
priethor authored Jul 26, 2023
1 parent fdfffbc commit 1503530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/enforce-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
type-related-labels:
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: read
pull-requests: read
steps:
- uses: mheap/github-action-required-labels@v5
with:
Expand All @@ -15,5 +16,5 @@ jobs:
labels: "[Type] Accessibility (a11y), [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Performance, [Type] Project Management, [Type] Security, [Type] WP Core Ticket"
add_comment: true
message: "## ⚠️ Type of PR label error\n To merge this PR, it requires {{ errorString }} {{ count }} label indicating the type of PR. Other labels are optional and not being checked here. \n- **Type-related labels to choose from**: {{ provided }}.\n- **Labels found**: {{ applied }}."
token: ${{ secrets.GUTENBERG_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
exit_type: success

1 comment on commit 1503530

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 1503530.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5669691385
📝 Reported issues:

Please sign in to comment.