From b3f5ce1be8a18a06e8816497031ad85e2e285cf9 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Wed, 1 Dec 2021 18:48:51 -0500 Subject: [PATCH] fix permissions to create PR (#24158) The whats new action needs to have additional permissions in order to create the new branch and create a new PR. --- .github/workflows/whats-new.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/whats-new.yml b/.github/workflows/whats-new.yml index 0840834efd..71643aed09 100644 --- a/.github/workflows/whats-new.yml +++ b/.github/workflows/whats-new.yml @@ -16,7 +16,6 @@ on: env: DOTNET_VERSION: '5.0.301' # set this to the dot net version to use - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -24,6 +23,9 @@ jobs: create-what-is-new: # The type of runner that the job will run on runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -38,7 +40,7 @@ jobs: - name: 'Print manual run reason' if: ${{ github.event_name == 'workflow_dispatch' }} run: | - echo 'Reason: ${{ github.event.inputs.reason }}' + echo "Reason: ${{ github.event.inputs.reason }}" # Print dotnet info - name: Display .NET info