Skip to content

Commit 9cb190e

Browse files
committed
Log sparql auth
1 parent d3e6ed4 commit 9cb190e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/upload-to-triplestore.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
auth_details = None
7878
if 'SPARQL_USERNAME' in os.environ:
7979
auth_details = (os.environ["SPARQL_USERNAME"], os.environ.get("SPARQL_PASSWORD", ""))
80-
print('Using authentication')
80+
import hashlib
81+
hashes = ':'.join(hashlib.sha256(os.environ['SPARQL_' + x].encode()).hexdigest() for x in ('USERNAME', 'PASSWORD'))
82+
print(f'Using authentication ({hashes})')
8183
8284
for bblock in bblocks:
8385
ontology = bblock.get('ontology')

0 commit comments

Comments
 (0)