diff --git a/.github/workflows/flax_publish.yml b/.github/workflows/flax_publish.yml index b4f6569df..7020f2a6a 100644 --- a/.github/workflows/flax_publish.yml +++ b/.github/workflows/flax_publish.yml @@ -44,6 +44,9 @@ jobs: uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 discord_release: + permissions: + contents: read + if: github.repository_owner == 'google' runs-on: ubuntu-latest steps: @@ -63,7 +66,7 @@ jobs: maxLength: 2000 truncationSymbol: "..." - name: Discord Webhook Action - uses: tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164 # v5.3.0 + uses: tsickert/discord-webhook@b217a69502f52803de774ded2b1ab7c282e99645 # v7.0.0 with: webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} content: ${{ steps.get-content.outputs.string }}