Skip to content

Commit 42cd41d

Browse files
fix: minimal permission on gh action (#12)
1 parent 31c2d39 commit 42cd41d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9-
9+
permissions:
10+
contents: read
1011
steps:
1112
- name: Checkout code
1213
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.github/workflows/on-pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: On Pull Request
2-
2+
permissions:
3+
contents: read
34
on:
45
pull_request:
56
types:

0 commit comments

Comments
 (0)