File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,16 @@ jobs:
10
10
test :
11
11
name : Run tests & display coverage
12
12
runs-on : ubuntu-latest
13
+ # This ensures it ONLY runs on PR events, not pushes to main
13
14
if : github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
14
15
permissions :
15
- # Still include these for any other actions that might use GITHUB_TOKEN
16
16
pull-requests : write
17
17
contents : write
18
18
actions : read
19
19
steps :
20
- # DO NOT run actions/checkout here, for security reasons
21
- # For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
22
-
23
20
- name : Post comment
24
21
uses : py-cov-action/python-coverage-comment-action@v3
25
22
with :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
23
GITHUB_PR_RUN_ID : ${{ github.event.workflow_run.id }}
28
- # Update these if you changed the default values:
29
- # COMMENT_ARTIFACT_NAME: python-coverage-comment-action
30
- # COMMENT_FILENAME: python-coverage-comment-action.txt
31
24
env :
32
25
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments