77 pull_request :
88 types : [opened, reopened, synchronize]
99
10+ permissions :
11+ contents : read
12+
1013jobs :
1114 build-doc :
1215 runs-on : ubuntu-latest
1316 steps :
14- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
17+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 .0.1
1518
1619 - name : Set up uv
17- uses : astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0 .0
20+ uses : astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1 .0
1821 with :
1922 python-version : " 3.9"
2023
4245 cd doc
4346 source .venv/bin/activate
4447 make -kj8 || make -kj8
45- curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
46- 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
4755 python front-matter-ci.py build/html
4856 python check-or-enforce-order.py build/html
4957
5563
5664 - name : Create GitHub App token
5765 if : github.ref_name == 'doc-prod' && github.event_name == 'push'
58- uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
66+ uses : actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
5967 id : app-token
6068 with :
6169 app-id : ${{ vars.GRAPHING_LIBRARIES_CI_GHAPP_ID }}
6573
6674 - name : Checkout plotly.py-docs (built)
6775 if : github.ref_name == 'doc-prod' && github.event_name == 'push'
68- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
76+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 .0.1
6977 with :
7078 repository : plotly/plotly.py-docs
7179 ref : built
8694
8795 - name : Checkout plotly.py-docs (built_ipynb)
8896 if : github.ref_name == 'doc-prod' && github.event_name == 'push'
89- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
97+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 .0.1
9098 with :
9199 repository : plotly/plotly.py-docs
92100 ref : built_ipynb
@@ -105,7 +113,7 @@ jobs:
105113
106114 - name : Checkout graphing-library-docs
107115 if : github.ref_name == 'doc-prod' && github.event_name == 'push'
108- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
116+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 .0.1
109117 with :
110118 repository : plotly/graphing-library-docs
111119 ref : master
@@ -134,7 +142,7 @@ jobs:
134142
135143 - name : Checkout plotly.py-docs (gh-pages)
136144 if : github.ref_name == 'doc-prod' && github.event_name == 'push'
137- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
145+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 .0.1
138146 with :
139147 repository : plotly/plotly.py-docs
140148 ref : gh-pages
0 commit comments