diff --git a/.github/workflows/update-github-discussions.yml b/.github/workflows/update-github-discussions.yml index 35ac2110c..8b07b36e0 100644 --- a/.github/workflows/update-github-discussions.yml +++ b/.github/workflows/update-github-discussions.yml @@ -11,6 +11,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + token: ${{ secrets.UPDATE_DISCUSSIONS_JSON_PAT }} + repository: ${{ github.repository }} - name: Set up Python uses: actions/setup-python@v4 @@ -24,7 +27,7 @@ jobs: - name: Run load_github_discussions.py env: - GITHUB_ACCESS_TOKEN: ${{ secrets.UPDATE_DISCUSSIONS_JSON_PAT }} + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: python scripts/load_github_discussions.py - name: Commit and push if changed