2424 required : true
2525 type : string
2626 secrets :
27- TELEGRAM_TOKEN :
27+ telegram_token :
2828 description : " Token required for interacting with Telegram API"
2929 required : false
30- TELEGRAM_TO :
30+ telegram_to :
3131 description : " Account ID that will receive the telegram notification"
3232 required : false
3333
@@ -52,12 +52,13 @@ jobs:
5252 matrix :
5353 format : [ html, latex, epub ]
5454 steps :
55- - uses : actions/checkout@v7
55+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5656 with :
5757 fetch-depth : 5
58+ persist-credentials : false
5859
5960 - name : Set up Python 3
60- uses : actions/setup-python@v7
61+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
6162 with :
6263 python-version : ${{ inputs.version }}
6364 cache : pip
7576 run : sudo apt update -y && sudo apt install librsvg2-bin -y
7677
7778 - name : Add problem matcher
78- uses : sphinx-doc/github-problem-matcher@v1.1
79+ uses : sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1
7980
8081 - name : Build docs
8182 id : build
@@ -93,24 +94,24 @@ jobs:
9394
9495 - name : Notify via Telegram
9596 if : always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule' && inputs.tx_project == 'python-newest'
96- uses : appleboy/telegram-action@v1.0.1
97+ uses : appleboy/telegram-action@221e6b684967abe813051ee4a37dd61770a83ad3 # v1.0.1
9798 with :
98- to : ${{ secrets.TELEGRAM_TO }}
99- token : ${{ secrets.TELEGRAM_TOKEN }}
99+ to : ${{ secrets.telegram_to }}
100+ token : ${{ secrets.telegram_token }}
100101 format : markdown
101102 disable_web_page_preview : true
102103 message_file : logs/notify.txt
103104
104105 - name : Upload artifact - log files
105106 if : always() && steps.build.outcome == 'failure'
106- uses : actions/upload-artifact@v7
107+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
107108 with :
108109 name : logs-${{ inputs.version }}-${{ matrix.format }}
109110 path : logs/*
110111
111112 - name : Upload artifact - docs
112113 if : always() && steps.build.outcome == 'success'
113- uses : actions/upload-artifact@v7
114+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
114115 with :
115116 name : python-docs-pt-br-${{ inputs.version }}-${{ matrix.format }}
116117 path : cpython/Doc/build/${{ matrix.format }}
@@ -121,13 +122,13 @@ jobs:
121122 runs-on : ubuntu-latest
122123 needs : [ 'build' ]
123124 steps :
124- - uses : actions/download-artifact@v8
125+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
125126 with :
126127 name : python-docs-pt-br-${{ inputs.version }}-latex
127128 - run : sudo apt-get update
128129 - run : sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy texlive-lang-portuguese
129130 - run : make
130- - uses : actions/upload-artifact@v7
131+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
131132 if : always()
132133 with :
133134 name : python-docs-pt-br-${{ inputs.version }}-pdf
@@ -139,12 +140,13 @@ jobs:
139140 name : Lint translations
140141 runs-on : ubuntu-latest
141142 steps :
142- - uses : actions/checkout@v7
143+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
143144 with :
144145 fetch-depth : 5
146+ persist-credentials : false
145147
146148 - name : Set up Python 3
147- uses : actions/setup-python@v7
149+ uses : actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
148150 with :
149151 python-version : ${{ inputs.version }}
150152 cache : pip
@@ -158,7 +160,7 @@ jobs:
158160 run : ./scripts/setup.sh
159161
160162 - name : Add problem matcher
161- uses : rffontenelle/sphinx-lint-problem-matcher@v1.0.0
163+ uses : rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0
162164
163165 - name : lint translations files
164166 id : lint
@@ -176,17 +178,17 @@ jobs:
176178
177179 - name : Notify via Telegram
178180 if : always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule' && inputs.tx_project == 'python-newest'
179- uses : appleboy/telegram-action@v1.0.1
181+ uses : appleboy/telegram-action@221e6b684967abe813051ee4a37dd61770a83ad3 # v1.0.1
180182 with :
181- to : ${{ secrets.TELEGRAM_TO }}
182- token : ${{ secrets.TELEGRAM_TOKEN }}
183+ to : ${{ secrets.telegram_to }}
184+ token : ${{ secrets.telegram_token }}
183185 format : markdown
184186 disable_web_page_preview : true
185187 message_file : logs/notify.txt
186188
187189 - name : Upload artifact - log files
188190 if : always() && steps.lint.outcome == 'failure'
189- uses : actions/upload-artifact@v7
191+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
190192 with :
191193 name : ${{ inputs.version }}-lint-logs
192194 path : logs/*
@@ -199,9 +201,10 @@ jobs:
199201 name : Check for zero-width space characters
200202 runs-on : ubuntu-latest
201203 steps :
202- - uses : actions/checkout@v7
204+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
203205 with :
204206 ref : ${{ inputs.version }}
207+ persist-credentials : false
205208
206209 - name : Make sure the repository is up to date
207210 if : github.event_name != 'pull_request'
0 commit comments