diff --git a/.github/workflows/discussions.yml b/.github/workflows/discussions.yml index 02f71f90..955a92e4 100644 --- a/.github/workflows/discussions.yml +++ b/.github/workflows/discussions.yml @@ -6,11 +6,15 @@ on: jobs: create-discussion-threads: runs-on: ubuntu-latest + permissions: + discussions: write + contents: read steps: - name: Create a new GitHub Discussion id: create-discussion - uses: abirismyname/create-discussion@v1.x + uses: abirismyname/create-discussion@v1.2.0 + env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -29,4 +33,4 @@ jobs: echo discussion-id: ${{steps.create-discussion.outputs.discussion-id}} echo discussion-url: ${{steps.create-discussion.outputs.discussion-url}} else - echo "Discussion not created" + echo "Discussion not created" \ No newline at end of file