Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created September 20, 2024 21:11
Show Gist options
  • Select an option

  • Save KyMidd/ee89c697b42bdf8466b7d798505205c6 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/ee89c697b42bdf8466b7d798505205c6 to your computer and use it in GitHub Desktop.
# Define function
def initialize_csv():
with open(GITHUB_ORG+"_repo_dependency_licensing.csv", 'w', newline='') as file:
# Initialize writer
writer = csv.writer(file)
# Write header
field = ["org", "repo", "dependency_name", "license"]
writer.writerow(field)
# Call function
initialize_csv()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment