Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active September 20, 2024 20:49
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/fce1b9e9a75702a9f35f57aa33e7cee0 to your computer and use it in GitHub Desktop.
# Define function
def build_headers():
# Create headers for sbom request
headers = {
"Accept": "application/vnd.github.v3+json",
"Authorization": "Bearer "+GITHUB_TOKEN,
}
return headers
# Build headers
headers = build_headers()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment