Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds
workflow_run
to the events that can trigger this action.That way #68 can be solved by using a two staged actions setup like this for example:
First a pytest action that generates
pytest-coverage.txt
andpytest.xml
and uploads these amoung a textfile with the PR number as workflow artifacts.And the second stage that actually creates the comment.
Important is that the name of the first worflow
name: Run unit tests
must be identical toworkflows: ["Run unit tests"]
in the second workflow.@asumagic did actually post a solution like the above in #68 but that failed because
workflow_run
was not an allowd trigger.The underlayng problem why the comment can not be created directly from a PR that comes from a forked repo is described in GitHubs Blog: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/