ci/update-flake: use app token for checkout (#1987)

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Approved-by: Matt Sturgeon <matt@sturgeon.me.uk>
Approved-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Approved-by: Daniel Thwaites <danth@danth.me>
This commit is contained in:
0xda157 2025-11-19 05:48:21 -10:00 committed by GitHub
parent 948720e297
commit f1385f026d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,12 +14,6 @@ jobs:
matrix:
branch: [master, release-25.05]
steps:
- uses: actions/checkout@v5
with:
ref: ${{ matrix.branch }}
- uses: cachix/install-nix-action@v31
- id: generate-token
uses: actions/create-github-app-token@v2
with:
@ -28,6 +22,13 @@ jobs:
permission-contents: write
permission-pull-requests: write
- uses: actions/checkout@v5
with:
ref: ${{ matrix.branch }}
token: ${{ steps.generate-token.outputs.token }}
- uses: cachix/install-nix-action@v31
- id: user-info
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}