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:
1010 test :
1111 name : Run tests & display coverage
1212 runs-on : ubuntu-latest
13+ # This ensures it ONLY runs on PR events, not pushes to main
1314 if : github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1415 permissions :
15- # Still include these for any other actions that might use GITHUB_TOKEN
1616 pull-requests : write
1717 contents : write
1818 actions : read
1919 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-
2320 - name : Post comment
2421 uses : py-cov-action/python-coverage-comment-action@v3
2522 with :
26- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2723 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
3124 env :
3225 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments