-
Couldn't load subscription status.
- Fork 88
CLOUDP-317733: Code coverage report fails for forks #3964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
LGTM, I don't see the comment on this PR, did something happen? |
You're right, back to the drawing board. As you pointed out offline, |
|
I would change to and call it a day for this PR, then you open a new jira about making the comment on forks I mean we can still see it on action summary, we just need to make sure anyone can see it |
| workflows: ["Code Health"] | ||
| types: | ||
| - completed | ||
| pull_request_target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[q] do you need both pull_request_target and pull_request ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tihnk pull_request_target only triggers on forks not normal PRs https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but it limits the permissions:
For workflows that are triggered by the pull_request_target event, the GITHUB_TOKEN is granted read/write repository permission unless the permissions key is specified and the workflow can access secre
bdde0ee to
b7a2b99
Compare
|
Coverage Report 📈
|
Proposed changes
Split the code coverage and commenting workflow into 2 workflows:
code-heatlth-comment-coverage.ymlruns on the base of the branch (for security) with a write token and comments.Jira ticket: CLOUDP-317733