Skip to content

Commit 432d489

Browse files
committed
fix: add necessary permissions
1 parent b48f3f5 commit 432d489

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/structurizr-diagrams-comment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
comment-on-pr:
1212
if: github.event.workflow_run.conclusion == 'success'
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read # Allow to work with the contents of the repository, including git pull.
16+
pull-requests: write # Allow to list and create pr's comments.
1417
steps:
1518
- uses: sebastienfi/structurizr-pr-comment@v1
1619
with:

.github/workflows/structurizr-diagrams-update.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
update-diagrams:
1414
runs-on: ubuntu-latest
1515
container: ghcr.io/sebastienfi/structurizr-cli-with-bonus:latest
16+
permissions:
17+
contents: write # Allow to work with the contents of the repository, including git push.
1618
steps:
1719
- uses: sebastienfi/structurizr-gen-images@v1
1820
with:

0 commit comments

Comments
 (0)