Skip to content

Commit 3c8f5ae

Browse files
committed
Fix release auto-dispatch perms + restrict auto-tag paths
- `gh workflow run` requires actions:write, not just contents:write. Add it to both Auto-tag and Bump & Release workflows so the dispatch step stops failing with HTTP 403. - Auto-tag's paths filter no longer includes workflow files. Workflow edits don't change the binary, so they shouldn't auto-bump the version. (That's what produced the spurious v0.1.2 / v0.1.3 tags while iterating on the workflows themselves.)
1 parent cf82554 commit 3c8f5ae

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ on:
1616
push:
1717
branches: [main]
1818
paths:
19+
# Only files that affect the produced binary trigger an auto-tag.
20+
# Workflow / CI changes do *not* — that was the source of the
21+
# version-inflation we got while iterating on the workflows themselves.
1922
- "Sources/**"
2023
- "Tests/**"
2124
- "project.yml"
2225
- "bootstrap.sh"
23-
- ".github/workflows/release.yml"
24-
- ".github/workflows/auto-tag.yml"
2526

2627
permissions:
2728
contents: write
29+
actions: write # required by `gh workflow run` to dispatch Release
2830

2931
concurrency:
3032
group: auto-tag-main

.github/workflows/bump-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323

2424
permissions:
2525
contents: write
26+
actions: write # required by `gh workflow run` to dispatch Release
2627

2728
jobs:
2829
tag:

0 commit comments

Comments
 (0)