Skip to content

Commit

Permalink
Merge pull request #1837 from input-output-hk/exclude_tokens_from_doc
Browse files Browse the repository at this point in the history
Make sure GitHub tokens don't make it to documentation
  • Loading branch information
mkoura committed May 25, 2023
2 parents b9ccd35 + a59b44b commit 11ec5ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -euo pipefail

DOC_SRC="src_docs"

unset GH_TOKEN GITHUB_TOKEN

# check that "$DOC_SRC" dir exists
if [ ! -d "$DOC_SRC" ]; then
echo "The '$DOC_SRC' dir doesn't exist, are you in the right directory?"
Expand Down
3 changes: 3 additions & 0 deletions src_docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
"css/copyright.css",
]

# Clear tokens from the output
os.environ["GITHUB_TOKEN"] = os.environ["GH_TOKEN"] = "token_XXXXXXXXXXXXXXXXXXXX"

# Resolve function for the linkcode extension.

# store current git revision
Expand Down

0 comments on commit 11ec5ed

Please sign in to comment.