From d8af114c9c8412d903f443b12e70c04d018a4096 Mon Sep 17 00:00:00 2001 From: Johannes Demer <48685701+jtdemer@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:39:10 +0100 Subject: [PATCH] Update add_to_project.yml Signed-off-by: Johannes Demer <48685701+jtdemer@users.noreply.github.com> --- .github/workflows/add_to_project.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/add_to_project.yml b/.github/workflows/add_to_project.yml index d430522..6d6572b 100644 --- a/.github/workflows/add_to_project.yml +++ b/.github/workflows/add_to_project.yml @@ -7,6 +7,10 @@ on: - synchronize - reopened +permissions: + contents: write + actions: write + jobs: trigger: runs-on: ubuntu-latest @@ -14,7 +18,7 @@ jobs: - name: Trigger secondary workflow run: | curl -X POST \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + -H "Authorization: token ${{ secrets.MY_PAT }}" \ -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${{ github.repository }}/actions/workflows/secondary-workflow.yml/dispatches \ -d '{"ref":"${{ github.ref }}"}'