From f1385f026db4ef6edcc351465ebdb878593c79ab Mon Sep 17 00:00:00 2001 From: 0xda157 Date: Wed, 19 Nov 2025 05:48:21 -1000 Subject: [PATCH] ci/update-flake: use app token for checkout (#1987) Reviewed-by: Matt Sturgeon Approved-by: Matt Sturgeon Approved-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Approved-by: Daniel Thwaites --- .github/workflows/update-flake.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update-flake.yml b/.github/workflows/update-flake.yml index 96d42794..7f705cd9 100644 --- a/.github/workflows/update-flake.yml +++ b/.github/workflows/update-flake.yml @@ -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 }}