File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ jobs:
189189 - run :
190190 name : Publish to PyPI
191191 command : |
192- twine upload dist/* --username __token__ --password $PYPI_TOKEN
192+ twine upload dist/* --username "[email protected] " --password "${PYPI_UPLOAD_API_TOKEN}" 193193
194194workflows :
195195 # Workflow for non-production: PRs and non-master branches (internal contributors)
@@ -204,11 +204,16 @@ workflows:
204204 context :
205205 - okta-dcp
206206
207+ - platform-helpers-general/job-secrets-obtain :
208+ name : cache-secrets-job
209+ secret-key : " PYPI_UPLOAD_API_TOKEN"
210+
207211 # Build only after security scans pass
208212 - build :
209213 requires :
210214 - snyk-scan
211215 - reversing-labs
216+ - cache-secrets-job
212217
213218 # Unit tests run after build succeeds
214219 - unit_tests :
@@ -300,12 +305,17 @@ workflows:
300305 tags :
301306 only : /^v.*/
302307
308+ - platform-helpers-general/job-secrets-obtain :
309+ name : cache-secrets-job
310+ secret-key : " PYPI_UPLOAD_API_TOKEN"
311+
303312 # Publish only after all tests are successful
304313 - publish_to_pypi :
305314 context :
306315 - pypi-publish
307316 requires :
308317 - integration_tests
318+ - cache-secrets-job
309319 filters :
310320 branches :
311321 only : master
You can’t perform that action at this time.
0 commit comments