Skip to content

Commit

Permalink
Merge pull request #109 from mering/fix-username-gh-codespaces
Browse files Browse the repository at this point in the history
Prefer getpass.getuser() over os.getlogin()
  • Loading branch information
aiuto authored Sep 13, 2023
2 parents e160ce5 + 1442a79 commit 608c67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/write_sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import argparse
import codecs
import datetime
import getpass
import json
import os


TOOL = 'https//github.com/bazelbuild/rules_license/tools:write_sbom'
Expand All @@ -39,7 +39,7 @@ def _write_sbom_header(out, package):
'DocumentName: %s' % package,
# TBD
# 'DocumentNamespace: https://swinslow.net/spdx-examples/example1/hello-v3
'Creator: Person: %s' % os.getlogin(),
'Creator: Person: %s' % getpass.getuser(),
'Creator: Tool: %s' % TOOL,
datetime.datetime.utcnow().strftime('Created: %Y-%m-%d-%H:%M:%SZ'),
'',
Expand Down

0 comments on commit 608c67e

Please sign in to comment.