Skip to content

Commit a364012

Browse files
authored
Merge pull request #186 from DeterminateSystems/push-yonuoxmrqwmz
Update the readme to account for minimum mandatory permissions
2 parents 428c2b5 + 5681a56 commit a364012

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,27 @@ This is a GitHub Action that updates the [`flake.lock`][lockfile] file for your
1111
Here's an example GitHub Action workflow using this Action:
1212

1313
```yaml
14-
name: update-flake-lock
14+
name: Flake.lock: update Nix dependencies
1515

1616
on:
1717
workflow_dispatch: # allows manual triggering
1818
schedule:
1919
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
2020

2121
jobs:
22-
lockfile:
22+
nix-flake-update:
23+
permissions:
24+
contents: write
25+
id-token: write
26+
issues: write
27+
pull-requests: write
2328
runs-on: ubuntu-latest
2429
steps:
25-
- name: Checkout repository
26-
uses: actions/checkout@v4
27-
- name: Install Determinate Nix
28-
uses: DeterminateSystems/determinate-nix-action@v3
29-
- name: Update flake.lock
30-
uses: DeterminateSystems/update-flake-lock@main
30+
- uses: actions/checkout@v4
31+
- uses: DeterminateSystems/determinate-nix-action@v3
32+
- uses: DeterminateSystems/update-flake-lock@main
3133
with:
32-
pr-title: "Update flake.lock" # Title of PR to be created
34+
pr-title: "Update Nix flake inputs" # Title of PR to be created
3335
pr-labels: | # Labels to be set on the PR
3436
dependencies
3537
automated

0 commit comments

Comments
 (0)