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

Update nvd_os_app_custom_field.py #202

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Update nvd_os_app_custom_field.py #202

merged 1 commit into from
Dec 5, 2023

Conversation

ishgaror
Copy link
Contributor

@ishgaror ishgaror commented Dec 5, 2023

Adding the environment variable for api key

Adding the environment variable for api key
@ishgaror ishgaror requested a review from lonyejiaka December 5, 2023 15:04
@ishgaror ishgaror merged commit a701eb8 into master Dec 5, 2023
1 check passed
from collections import defaultdict
import sys

token_variable = 'API_KEY' # replace with your actual token

token_variable = os.environ.get('API_KEY')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The environment variable should be KENNA_API_KEY and it matches all the examples in the blog_samples repo. API_KEY is too generic.

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.

3 participants