Skip to content

Commit

Permalink
fix permissions for GH token (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Mar 4, 2024
1 parent 3e90653 commit 99dac1d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:
types: [labeled]

permissions:
contents: write
pull-requests: write

jobs:
automerge:
uses: adoptium/.github/.github/workflows/pr-auto-merge.yml@main
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/check-adopters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
check_adopters:
if: github.repository_owner == 'adoptium'
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/check-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
check_contributors:
if: github.repository_owner == 'adoptium'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
contents: read
statuses: write

jobs:
linter:
Expand Down

0 comments on commit 99dac1d

Please sign in to comment.