Skip to content

Commit 0c7f661

Browse files
authored
ci(security): set default workflow permissions to read-all (#9)
The sync workflow should explicitly define the permissions write on contents Closes #8 Signed-off-by: Jonathan Gonzalez V. <[email protected]> Signed-off-by: Francesco Canovai <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]>
1 parent 45cba6c commit 0c7f661

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/sync.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ on:
1010
repository_dispatch:
1111
types: [ sync-api ]
1212

13+
permissions: read-all
14+
1315
jobs:
1416
sync:
1517
runs-on: ubuntu-latest
16-
18+
permissions:
19+
contents: write
1720
steps:
1821
- name: Checkout API repository
1922
uses: actions/checkout@v4

0 commit comments

Comments
 (0)