ci: fix permissions (#256)

Drew Smirnoff created

Change summary

.github/workflows/update-flake.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Detailed changes

.github/workflows/update-flake.yml 🔗

@@ -6,6 +6,9 @@ on:
     paths: [go.sum]
   workflow_dispatch:
 
+permissions:
+  contents: write
+
 jobs:
   update:
     runs-on: ubuntu-latest
@@ -19,7 +22,7 @@ jobs:
 
       - name: Commit and push changes
         env:
-          GH_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
+          GH_TOKEN: ${{ github.token }}
         run: |
           git diff --quiet flake.lock && exit 0
           git config user.name "github-actions[bot]"