# GitHub Security Advisory

**URL:** <https://community.n8n.io/t/github-security-advisory/29211>\
**Category:** Questions\
**Tags:** github\
**Created:** [August 10, 2023, 9:41am UTC](https://community.n8n.io/t/github-security-advisory/29211 "2023-08-10T09:41:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugolini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rugolini/32/28417_2.png) [@rugolini](https://community.n8n.io/u/rugolini)\
**Post date:** [August 10, 2023, 9:41am UTC](https://community.n8n.io/t/github-security-advisory/29211/1 "2023-08-10T09:41:23Z")

</div>

## Describe the problem/error/question

There is a [public repository](https://github.com/OpenZeppelin/openzeppelin-contracts/security) that I don’t own and am also not part of.  
I’m interested in listening to [security advisory events](https://github.com/OpenZeppelin/openzeppelin-contracts/security) and taking action once a new one is created. Is it possible to do?

## What is the error message (if any)?

```auto
##Problem running workflow

*Check that the repository exists and that you have permission to create the webhooks this node requires*

```

## Information on your n8n setup

- **n8n version:** cloud version

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 10, 2023, 9:45am UTC](https://community.n8n.io/t/github-security-advisory/29211/3 "2023-08-10T09:45:03Z")

</div>

Hey @rugolini,

Welcome to the community 🎉

I have not tried it myself but it looks like there is an API to get the security advisories ([Repository security advisories - GitHub Docs](https://docs.github.com/en/rest/security-advisories/repository-advisories?apiVersion=2022-11-28#list-repository-security-advisories)) so you could do this with the HTTP Request node and use the `published_at` field to see if it has been published since the last workflow execution.

---

<div class="post-metadata">

**Author:** ![rugolini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rugolini/32/28417_2.png) [@rugolini](https://community.n8n.io/u/rugolini)\
**Post date:** [August 10, 2023, 12:28pm UTC](https://community.n8n.io/t/github-security-advisory/29211/4 "2023-08-10T12:28:09Z")

</div>

How do I get the time of the last workflow execution?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 10, 2023, 1:47pm UTC](https://community.n8n.io/t/github-security-advisory/29211/5 "2023-08-10T13:47:26Z")

</div>

Hey @rugolini,

What I tend to do is run a schedule that triggers every 30 minutes then I check the date by seeing if `{{ $now.minus({minutes: 30}) }}` was before the date I want to compare against. The workflow example below should get you started.

---

<div class="post-metadata">

**Author:** ![rugolini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rugolini/32/28417_2.png) [@rugolini](https://community.n8n.io/u/rugolini)\
**Post date:** [August 11, 2023, 7:34am UTC](https://community.n8n.io/t/github-security-advisory/29211/6 "2023-08-11T07:34:11Z")

</div>

Thanks @Jon, I can make it work like this but it would be nice to have a listener event to be more efficient.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 11, 2023, 9:26am UTC](https://community.n8n.io/t/github-security-advisory/29211/7 "2023-08-11T09:26:49Z")

</div>

Hey @rugolini,

That would depend on if GitHub make that available in their API, If we were to make a node for it we would probably do the same thing the workflow is doing which is our standard polling approach for services that don’t have a webhook offering.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 18, 2023, 9:27am UTC](https://community.n8n.io/t/github-security-advisory/29211/8 "2023-08-18T09:27:05Z")

</div>

Closed on August 18, 2023, 9:27am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
