Skip to content

Commit a655c7a

Browse files
authored
Merge pull request #1 from AvivAbachi/add-permissions
feat: Add-permissions
2 parents ea6d222 + 130df2c commit a655c7a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

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

7+
permissions:
8+
contents: read # for checkout and git clone
9+
actions: write # for uploading artifacts if any (optional here)
10+
workflows: write # if triggering other workflows (not used here, optional)
11+
pull-requests: write # only if modifying PRs (not used here)
12+
713
jobs:
814
ci:
915
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
actions: write
12+
checks: write
13+
914
jobs:
1015
lint-test:
1116
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)