File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11name : Post coverage comment
2-
32on :
43 workflow_run :
54 workflows : ["UnitTests"]
@@ -13,24 +12,21 @@ jobs:
1312 runs-on : ubuntu-latest
1413 if : github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1514 permissions :
16- # Gives the action the necessary permissions for publishing new
17- # comments in pull requests.
15+ # Still include these for any other actions that might use GITHUB_TOKEN
1816 pull-requests : write
19- # Gives the action the necessary permissions for editing existing
20- # comments (to avoid publishing multiple comments in the same PR)
2117 contents : write
22- # Gives the action the necessary permissions for looking up the
23- # workflow that launched this workflow, and download the related
24- # artifact that contains the comment to be published
2518 actions : read
2619 steps :
2720 # DO NOT run actions/checkout here, for security reasons
2821 # For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
22+
2923 - name : Post comment
3024 uses : py-cov-action/python-coverage-comment-action@v3
3125 with :
3226 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3327 GITHUB_PR_RUN_ID : ${{ github.event.workflow_run.id }}
34- # Update those if you changed the default values:
28+ # Update these if you changed the default values:
3529 # COMMENT_ARTIFACT_NAME: python-coverage-comment-action
3630 # COMMENT_FILENAME: python-coverage-comment-action.txt
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments