File tree Expand file tree Collapse file tree 7 files changed +27
-0
lines changed Expand file tree Collapse file tree 7 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : workflow_call
3
+ permissions :
4
+ contents : read
3
5
jobs :
4
6
lint :
5
7
name : Lint source files
@@ -158,6 +160,7 @@ jobs:
158
160
name : Run CodeQL security scan
159
161
runs-on : ubuntu-latest
160
162
permissions :
163
+ contents : read
161
164
security-events : write
162
165
steps :
163
166
- name : Checkout repo
Original file line number Diff line number Diff line change 10
10
npm_canary_pr_publish_token :
11
11
description : NPM token to publish canary release.
12
12
required : true
13
+ permissions :
14
+ contents : read
13
15
jobs :
14
16
build-npm-dist :
15
17
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 6
6
description : String that contain JSON payload for `pull_request` event.
7
7
required : true
8
8
type : string
9
+ permissions :
10
+ contents : read # for checkout
11
+ actions : read # to list workflow runs
9
12
jobs :
10
13
benchmark :
11
14
name : Run benchmark
Original file line number Diff line number Diff line change 18
18
description : Commit message
19
19
required : true
20
20
type : string
21
+ permissions : {}
21
22
jobs :
22
23
deploy-artifact-as-branch :
24
+ permissions :
25
+ contents : write # to push branch
23
26
environment :
24
27
name : ${{ inputs.environment }}
25
28
url : ${{ github.server_url }}/${{ github.repository }}/tree/${{ inputs.target_branch }}
Original file line number Diff line number Diff line change 21
21
* `@github-actions run-benchmark` - Run benchmark comparing base and merge commits for this PR
22
22
* `@github-actions publish-pr-on-npm` - Build package from this PR and publish it on NPM
23
23
</details>
24
+ permissions : {}
24
25
jobs :
25
26
hello-message :
27
+ permissions :
28
+ actions : read # to download event.json
29
+ pull-requests : write # to add comment to pull request
30
+
26
31
if : github.event_name == 'workflow_run'
27
32
runs-on : ubuntu-latest
28
33
steps :
49
54
})
50
55
51
56
accept-cmd :
57
+ permissions :
58
+ pull-requests : write # to add comment to pull request
59
+
52
60
if : |
53
61
github.event_name == 'issue_comment' &&
54
62
github.event.issue.pull_request &&
95
103
pull_request_json : ${{ needs.accept-cmd.outputs.pull_request_json }}
96
104
97
105
respond-to-cmd :
106
+ permissions :
107
+ pull-requests : write # to add comment to pull request
108
+
98
109
needs :
99
110
- accept-cmd
100
111
- cmd-publish-pr-on-npm
Original file line number Diff line number Diff line change 3
3
workflow_dispatch :
4
4
schedule :
5
5
- cron : ' 0 0 * * *' # run once every day at 00:00 UTC
6
+
7
+ permissions :
8
+ contents : read # to fetch code (actions/checkout)
9
+
6
10
jobs :
7
11
lint :
8
12
name : Run mutation testing
Original file line number Diff line number Diff line change 1
1
name : Push
2
2
on : push
3
+ permissions : {}
3
4
jobs :
4
5
ci :
5
6
uses : ./.github/workflows/ci.yml
You can’t perform that action at this time.
0 commit comments