diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b5a7b2597e7..b6b4de855d8 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -30,7 +30,8 @@ env: WORKING_DIRECTORY: testing/benchmark permissions: - contents: read + contents: write + pull-requests: write jobs: benchmarks: @@ -39,8 +40,9 @@ jobs: run: working-directory: ${{ env.WORKING_DIRECTORY }} permissions: - contents: read + contents: write id-token: write + pull-requests: write env: SSH_KEY: ./id_rsa_terraform TF_VAR_private_key: ./id_rsa_terraform @@ -193,6 +195,9 @@ jobs: git push -u origin "$BRANCH" gh auth status gh pr create -B main -H "$BRANCH" -f -R elastic/apm-server + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WORKFLOW: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }} # - name: Tear down benchmark environment # if: always()