Skip to content

Commit

Permalink
Fix GH workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed Oct 29, 2023
1 parent 5d4a819 commit 16320f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ on:
push:
branches:
- main
pull_request_target:
pull_request:
types: [ opened, reopened, synchronize ]

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Size Label

on:
pull_request_target:
pull_request:
types: [ assigned, opened, synchronize, reopened ]

jobs:
size-label:
permissions:
checks: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: size-label
Expand Down

0 comments on commit 16320f6

Please sign in to comment.