Skip to content

Commit a11a5ef

Browse files
authored
Update token for codecov.yml (#326)
1 parent 265e189 commit a11a5ef

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Post coverage comment
2-
32
on:
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 }}

0 commit comments

Comments
 (0)