Skip to content

Commit 41e7323

Browse files
aksOpsclaude
andcommitted
fix: move permissions to workflow level in reusable workflow callers
permissions must be set at the workflow level (not job level) when using reusable workflows. Also add secrets: inherit so GITHUB_TOKEN flows through to the called workflow for git tag/push operations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bf1e04f commit 41e7323

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/beta.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
auto-beta:
912
uses: RandomCodeSpace/central-ops/.github/workflows/reusable-auto-beta.yml@main
10-
permissions:
11-
contents: write
13+
secrets: inherit

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
description: 'Base beta version to release (e.g., v0.0.5-beta)'
88
required: true
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
release:
1215
uses: RandomCodeSpace/central-ops/.github/workflows/reusable-release.yml@main
13-
permissions:
14-
contents: write
16+
secrets: inherit
1517
with:
1618
version: ${{ inputs.version }}

0 commit comments

Comments
 (0)