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 }}"}'