Skip to content

Commit 3a172be

Browse files
committed
Give the GitHub token write permissions (#43)
Without the default write permissions the job otherwise fails, see https://github.com/astral-sh/pubgrub/actions/runs/14617176327/job/41007947575
1 parent bc1f8bb commit 3a172be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/permaref.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
create-permaref:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: "write"
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
@@ -23,7 +25,7 @@ jobs:
2325
2426
echo "LAST_PERMA_NUMBER=$(\
2527
git ls-remote --tags --refs --sort="v:refname" \
26-
https://github.com/zanieb/pubgrub.git | grep "tags/perma-" | tail -n1 | sed 's/.*\/perma-//' \
28+
https://github.com/astral-sh/pubgrub.git | grep "tags/perma-" | tail -n1 | sed 's/.*\/perma-//' \
2729
)" >> $GITHUB_OUTPUT
2830
2931
- name: Configure Git

0 commit comments

Comments
 (0)