From bee6064e6df5dfb8a0891ca8e6f0c8a4cea0956b Mon Sep 17 00:00:00 2001 From: Henrique Mouta Date: Tue, 26 Nov 2024 09:42:00 +0000 Subject: [PATCH] Add write permission explicitly to the build job. --- .github/workflows/build-plugin.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml index 27773cb0c0..1c29764bb5 100644 --- a/.github/workflows/build-plugin.yml +++ b/.github/workflows/build-plugin.yml @@ -4,7 +4,6 @@ on: branches: - trunk - develop - - temp-testing-branch workflow_dispatch: env: SOURCE_REF: ${{ github.ref_name }} @@ -15,6 +14,10 @@ jobs: build: name: Build and Commit runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + issues: write steps: - name: Setup BUILT_BRANCH env run: echo "BUILT_BRANCH=${SOURCE_REF}-built" >> $GITHUB_ENV @@ -79,7 +82,7 @@ jobs: - name: Commit built files run: | # Add the built files - git add -Af vendor/ build/ + git add -A vendor/ build/ git status -s # Commit the changes using the commit message file git commit -F final_commit_message.txt --no-verify