Skip to content

Commit

Permalink
chore: Use workflow token with permissions for automerge (#5432)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen authored Sep 4, 2023
1 parent 67c429f commit 75584ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00

permissions:
pull-requests: write
contents: write

jobs:
lockfile:
runs-on: ubuntu-latest
Expand All @@ -27,4 +31,4 @@ jobs:
- name: Enable Pull Request Automerge
run: 'gh pr merge --auto --squash -t "chore(deps): Update flake.lock" ${{ steps.update-flake.outputs.pull-request-number }}'
env:
GH_TOKEN: ${{ secrets.GH_PAT_NIX }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 75584ab

Please sign in to comment.