dependency-review-action icon indicating copy to clipboard operation
dependency-review-action copied to clipboard

Supporting action output

Open davidmally-at opened this issue 2 years ago • 1 comments

👋 Hi! My team has been using this action, and we were wondering if it's possible to get the summary output from the action to use in subsequent workflow steps. A fake example: image

We'd like to have this summary output available as output from the action itself, so that we can do things like post it as a comment on the PR that corresponds to the workflow run, notify people in Slack, etc. Is that supported today and I'm just missing it? If not, I would be happy to put together a pull request to support this.

davidmally-at avatar Sep 22 '22 17:09 davidmally-at

Hi @davidmally-at! I don't think we have anything in place to support the use case you're proposing, a PR would be extremely welcome! 🙇

febuiles avatar Sep 22 '22 17:09 febuiles

I'd also support this feature request.

The summary used for a PR comment is compiled. All that is left to do is output that from the workflow so that it could be picked up by later steps.

uli-f avatar Nov 16 '23 03:11 uli-f

If that's all that's desired, then it'd be a pretty easy thing to do right here: https://github.com/actions/dependency-review-action/blob/80f10bf419f34980065523f5efca7ebed17576aa/src/comment-pr.ts#L16-L23

jsoref avatar Feb 16 '24 22:02 jsoref

This functionality is now available in the latest release of the Action (4.1.2) thanks to @jsoref. You can find an example here of how to use the output. Closing this issue.

febuiles avatar Feb 19 '24 16:02 febuiles