Skip to content

Commit

Permalink
fixup token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jul 30, 2024
1 parent f4e2fe5 commit 0145067
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
pull_request:
types: [labeled]

permissions:
contents: write
pull-requests: write
permissions: read-all

jobs:
automerge:
permissions:
contents: write
pull-requests: write
uses: adoptium/.github/.github/workflows/pr-auto-merge.yml@main
with:
allowed-author: eclipse-temurin-bot
7 changes: 4 additions & 3 deletions .github/workflows/code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ on:
issue_comment:
types: [created]

permissions:
contents: write
pull-requests: write
permissions: read-all

jobs:
# Check if the pull request target branch matches the required branch-regex?
codefreeze_branch_check:
permissions:
contents: write
pull-requests: write
uses: adoptium/.github/.github/workflows/code-freeze-regex-branch.yml@main
with:
branch-regex: "^main$"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Dependabot auto-merge
on: pull_request_target

permissions:
contents: write
pull-requests: write
permissions: read-all

jobs:
dependabot:
permissions:
contents: write
pull-requests: write
uses: adoptium/.github/.github/workflows/dependabot-auto-merge.yml@main
2 changes: 2 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: read-all

jobs:
generate-jobs:
name: Generate Jobs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# Runs every half hour
- cron: "*/30 * * * *"

permissions: read-all

jobs:
update_dockerfile:
permissions:
Expand Down

0 comments on commit 0145067

Please sign in to comment.