Skip to content

Commit 4255624

Browse files
staaldraadyvan-sraka
authored andcommitted
chore: gh app and pin versions
1 parent e078fec commit 4255624

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/update-flake-lock.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,26 @@ on:
88
jobs:
99
update-flake-lock:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Checkout repository
13-
uses: actions/checkout@v4
15+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1416

1517
- name: Install Nix
1618
uses: ./.github/actions/nix-install-ephemeral
1719

20+
- name: Generate GitHub App Token
21+
id: app-token
22+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
23+
with:
24+
app-id: ${{ secrets.FLAKE_UPDATE_APP_ID }}
25+
private-key: ${{ secrets.FLAKE_UPDATE_PRIVATE_KEY }}
26+
1827
- name: Update flake.lock
19-
uses: Mic92/update-flake-inputs@main
28+
uses: Mic92/update-flake-inputs@73cb58f118541b956f5a061d12838ef1dd997867 # v1.0.3
2029
with:
21-
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
github-token: ${{ steps.app-token.outputs.token }}
2231
pr-labels: |
2332
dependencies
2433
automated

0 commit comments

Comments
 (0)