File tree Expand file tree Collapse file tree
scripts/split-tox-gh-actions/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3333 with :
3434 persist-credentials : false
35- - name : permissions
35+ - name : Check permissions on PR
36+ if : github.event_name == 'pull_request_target'
3637 run : |
3738 python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \
3839 --repo-id ${{ github.event.repository.id }} \
4546 # these can contain special characters
4647 ARG_USERNAME : ${{ github.event.pull_request.user.login }}
4748 ARG_LABEL_NAMES : ${{ toJSON(github.event.pull_request.labels.*.name) }}
49+ - name : Check permissions on repo branch
50+ if : github.event_name == 'push'
51+ run : true
4852 test-pinned :
4953 needs : check-permissions
5054 timeout-minutes : 30
Original file line number Diff line number Diff line change 66 with:
77 persist-credentials: false
88
9- - name: permissions
9+ - name: Check permissions on PR
10+ if: github.event_name == 'pull_request_target'
1011 run: |
1112 {% raw %}
1213 python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \
2324 ARG_USERNAME: ${{ github.event.pull_request.user.login }}
2425 ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }}
2526 {% endraw %}
27+
28+ - name: Check permissions on repo branch
29+ if: github.event_name == 'push'
30+ run: true
You can’t perform that action at this time.
0 commit comments