Skip to content

Commit

Permalink
[chore] restrict permissions on workflow (#11972)
Browse files Browse the repository at this point in the history
This updates the pr update workflow to only the permissions needed.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
  • Loading branch information
codeboten authored Dec 23, 2024
1 parent 1e5ccbe commit 7aef2af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/milestone-add-to-pr.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# This action adds the "next release" milestone to a pull request
# when it is merged

name: 'Project: Add PR to Milestone'
name: "Project: Add PR to Milestone"
on:
pull_request_target:
types:
- closed

permissions: read-all

jobs:
update-pr:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
Expand Down

0 comments on commit 7aef2af

Please sign in to comment.