Skip to content
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

feat: add serverless auto-issue function #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alexiscolin
Copy link
Member

@alexiscolin alexiscolin commented Oct 4, 2024

This aims to link a bot to create issue without GH account.

Fixes: https://github.com/allinbits/multiwallet/issues/46

Need Netlify and GH Bot to be setup properly.


The Token API used in .env comes from a GitHub App bot that I'll be able to transfer to AiB.
Issues can be created outside of GH without credentials by using this request.

curl -X POST https://wallet-security-lists.netlify.app/.netlify/functions/createissue \
  -H "Content-Type: application/json" \
  -d '{
    "type": "Site",
    "data": {
      "name": "Malicious Phishing Site",
      "url": "phishing-url.com",
      "user-note": "This site is attempting to phish user credentials.",
      "threat-level": "3 (High) Site should not be allowed under any circumstances"
    }
  }'

@alexiscolin alexiscolin marked this pull request as draft October 4, 2024 18:16
@alexiscolin alexiscolin marked this pull request as ready for review October 5, 2024 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant