Hack The Box
Create an App Token on your HTB Account Settings page
Notion
Database
Duplicate the template in your workspace :
Your Notion DB ID will then be as follows
Integration
Go to your integrations in Notion and create a new one
Then show you API key and copy it
Link database and integration
On your database, add a new connection for your integration
Simple usage
./htb-notion.py --htb-token HTB_APP_TOKEN --notion-token NOTION_API_KEY --notion-db NOTION_DB_ID [--debug]
GitHub Actions
Duplicate the project
On the project page, you can duplicate it as follows
Add GitHub Actions secrets
Add these 3 secrets in your GitHub settings :
-
HTB_APP_TOKEN
-
NOTION_API_KEY
-
NOTION_DB_ID
Run the workflow