Skip to content

Commit 6785773

Browse files
authored
refactor: ♻️ limit permissions used in workflow (#105)
# Description Limit default permissions in GitHub Actions workflow. This PR needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent 0550b18 commit 6785773

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

template/.github/workflows/add-to-project.yml.jinja

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ on:
1111
- reopened
1212
- opened
1313

14-
permissions:
15-
pull-requests: write
14+
# Limit token permissions for security
15+
permissions: read-all
1616

1717
jobs:
1818
add-to-project:
1919
uses: seedcase-project/.github/.github/workflows/reusable-add-to-project.yml@main
20+
permissions:
21+
pull-requests: write
2022
with:
2123
board-number: {{ github_board_number }}
2224
app-id: {{ '${{ vars.ADD_TO_BOARD_APP_ID }}' }}

0 commit comments

Comments
 (0)