Skip to content

Commit 56cbe48

Browse files
Junyi-99Junyi Houclaude
authored
fix: add permissions to backend caller workflows (#146)
Co-authored-by: Junyi Hou <junyi@xtras3.tail08d22c.ts.net> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89a066b commit 56cbe48

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build-backend-dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches:
55
- development
66

7+
permissions:
8+
contents: write
9+
packages: write
10+
711
jobs:
812
build-and-deploy:
913
uses: ./.github/workflows/_build-backend.yml

.github/workflows/build-backend-prd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
repository_dispatch:
44
types: [prd]
55

6+
permissions:
7+
contents: write
8+
packages: write
9+
610
jobs:
711
build-and-deploy:
812
uses: ./.github/workflows/_build-backend.yml

.github/workflows/build-backend-stg.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
repository_dispatch:
44
types: [stg]
55

6+
permissions:
7+
contents: write
8+
packages: write
9+
610
jobs:
711
build-and-deploy:
812
uses: ./.github/workflows/_build-backend.yml

0 commit comments

Comments
 (0)