Skip to content

Commit

Permalink
add GH token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Mar 1, 2024
1 parent c1163d4 commit ca663e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
6 changes: 3 additions & 3 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
# Runs every half hour
- cron: "*/30 * * * *"

permissions:
contents: read

jobs:
update_dockerfile:
permissions:
contents: write
pull-requests: write
if: startsWith(github.repository, 'adoptium/')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit ca663e2

Please sign in to comment.