From ca663e21628fa584161eaa9161e420998e61ca6e Mon Sep 17 00:00:00 2001 From: George Adams Date: Fri, 1 Mar 2024 23:07:12 +0000 Subject: [PATCH] add GH token permissions --- .github/workflows/auto-merge.yml | 4 ++++ .github/workflows/updater.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 7808e956c..460e23188 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -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 diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index f26162ca0..851bf2076 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -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: