Skip to content

Commit e260f70

Browse files
committed
pin graphing-library-docs file fetches to commit SHA
1 parent 8211af1 commit e260f70

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/build-doc.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ jobs:
4545
cd doc
4646
source .venv/bin/activate
4747
make -kj8 || make -kj8
48-
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
49-
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/check-or-enforce-order.py > check-or-enforce-order.py
48+
# Fetch scripts from plotly/graphing-library-docs, pinned to a specific commit SHA
49+
# to guard against unauthorized changes in that repo. If changes are made to the
50+
# below-referenced scripts in plotly/graphing-library-docs, update DOCS_CI_REF
51+
# accordingly to point to the latest commit SHA.
52+
DOCS_CI_REF=e05eaed1ae800139df084e0587762aa273a4f19d
53+
curl -fsSL https://raw.githubusercontent.com/plotly/graphing-library-docs/$DOCS_CI_REF/front-matter-ci.py > front-matter-ci.py
54+
curl -fsSL https://raw.githubusercontent.com/plotly/graphing-library-docs/$DOCS_CI_REF/check-or-enforce-order.py > check-or-enforce-order.py
5055
python front-matter-ci.py build/html
5156
python check-or-enforce-order.py build/html
5257

0 commit comments

Comments
 (0)