Skip to content

Commit

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

Now that GH has changed the default permissions to read we need to explicitly define the permissions

* Update code-freeze.yml
  • Loading branch information
gdams authored Mar 2, 2024
1 parent 05f0d8d commit 7dca418
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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: 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 7dca418

Please sign in to comment.