Skip to content

Commit d3482e4

Browse files
authored
Fix CI Security (#25)
1 parent fd8b4a0 commit d3482e4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
pull-requests: read
6+
37
on:
48
workflow_dispatch:
59
workflow_call:

.github/workflows/draft-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ on:
1212

1313
env:
1414
TAG_VERSION: ${{ github.event.inputs.TAG_VERSION }}
15-
permissions:
16-
contents: write
1715

1816
jobs:
1917

2018
ci:
2119
name: CI Job
2220
uses: ./.github/workflows/ci.yml
21+
permissions:
22+
contents: read
23+
pull-requests: read
2324

2425
update_tag:
2526
name: Update Tag Job

.github/workflows/push-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
release:
55
types: [published]
66

7-
permissions:
8-
contents: write
9-
107
jobs:
118

129
ci:
1310
name: CI Job
1411
uses: ./.github/workflows/ci.yml
12+
permissions:
13+
contents: read
14+
pull-requests: read
1515

1616
update_tag:
1717
name: Update Tag Job
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
needs: [update_tag]
3232
permissions:
33-
contents: write
33+
contents: read
3434
steps:
3535
- name: Update package
3636
run: |

0 commit comments

Comments
 (0)