Skip to content

Commit

Permalink
Fix GH action permissions (#3680)
Browse files Browse the repository at this point in the history
* Fix GH action permissions

* Update comment-bot.yml

* Update comment-bot.yml

* Update code-freeze.yml
  • Loading branch information
gdams authored Mar 2, 2024
1 parent c6a9fe2 commit fd05907
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
issue_comment:
types: [created]

permissions:
contents: write
pull-requests: write

jobs:
codefreeze:
uses: adoptium/.github/.github/workflows/code-freeze.yml@main
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/comment-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
types: [ opened ]

jobs:
Comment:
comment:
permissions:
issues: write
pull-requests: write
name: Add Comment
runs-on: ubuntu-latest

steps:
- name: Create comment
uses: JJ/pr-greeting-action@01953a8c191056b059c8dbc667d833aa082fd865 # releases/v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
issue_comment:

jobs:
Label:
label:
permissions:
contents: read
pull-requests: write
issues: write
runs-on: ubuntu-latest
name: Assign Labels
steps:
Expand Down

0 comments on commit fd05907

Please sign in to comment.