Skip to content

Commit

Permalink
Update nvd_os_app_custom_field.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ishgaror authored Dec 5, 2023
1 parent 9ce0e4e commit afd3185
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
import json
import gzip
import io
import os
from collections import defaultdict
import sys

token_variable = 'API_KEY' # replace with your actual token

token_variable = os.environ.get('API_KEY')
base_url = "https://api.kennasecurity.com"

def request_data_export(token_variable):
Expand Down Expand Up @@ -255,4 +257,4 @@ def send_bulk_updates(ids, app_or_os, custom_field_id, token_variable):
send_bulk_updates(batch, custom_field_value, custom_field_id, token_variable)
time.sleep(0.2) # Add a delay of 0.2 seconds between each request
ids = ids[thresh_num:]


0 comments on commit afd3185

Please sign in to comment.