File tree Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Documentation
2
+ permissions :
3
+ contents : read
2
4
3
5
on : [push, pull_request]
4
6
14
16
steps :
15
17
16
18
- uses : actions/checkout@v2
19
+ with :
20
+ persist-credentials : false
17
21
18
22
- name : Set up Python ${{ matrix.python-version }}
19
23
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 1
1
name : Check Code Style
2
+ permissions :
3
+ contents : read
2
4
3
5
on : [push, pull_request]
4
6
10
12
steps :
11
13
12
14
- uses : actions/checkout@v2
15
+ with :
16
+ persist-credentials : false
13
17
14
18
- uses : actions/setup-python@v2
15
19
Original file line number Diff line number Diff line change 26
26
27
27
- uses : actions/checkout@v2
28
28
with :
29
- fetch-depth : 1000 # should be enough to reach the most recent tag
29
+ fetch-depth : 1000
30
+ persist-credentials : false
30
31
31
32
- name : Set up Python ${{ matrix.python-version }}
32
33
uses : actions/setup-python@v2
51
52
- name : Deploy documentation
52
53
# We pin to the SHA, not the tag, for security reasons.
53
54
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
54
- uses : peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
55
+ uses : peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
55
56
with :
56
57
deploy_key : ${{ secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY }}
57
58
publish_branch : master
Original file line number Diff line number Diff line change 14
14
15
15
steps :
16
16
- uses : actions/checkout@v2
17
+ with :
18
+ persist-credentials : false
17
19
- name : Set up Python
18
20
uses : actions/setup-python@v2
19
21
with :
Original file line number Diff line number Diff line change 1
1
name : Unit Tests
2
+ permissions :
3
+ contents : read
2
4
3
5
on : [push, pull_request]
4
6
13
15
14
16
steps :
15
17
- uses : actions/checkout@v2
18
+ with :
19
+ persist-credentials : false
16
20
- name : Set up Python ${{ matrix.python-version }}
17
21
uses : actions/setup-python@v2
18
22
with :
You can’t perform that action at this time.
0 commit comments