Skip to content

Commit 3504b59

Browse files
jorgepilotopyansys-ci-bot
authored andcommitted
fix(release-actions): raise warning if not using trusted publishers (#883)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent ad63453 commit 3504b59

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

doc/source/changelog/883.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Raise warning if not using trusted publishers

release-pypi-public/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@ runs:
110110
using: "composite"
111111
steps:
112112

113+
# TODO: ansys/actions@v11 will enforce the use of trusted publishers
114+
- name: "Warn user if not using trusted publishers"
115+
if: ${{ inputs.use-trusted-publisher == 'false' }}
116+
uses: ansys/actions/_logging@main
117+
with:
118+
level: "WARNING"
119+
message: >
120+
Ansys Actions v11 will remove support for releases using PyPI tokens.
121+
Please contact the PyAnsys Core Team at [email protected] for
122+
enabling trusted publishers releases in your project.
123+
113124
- name: "Release to the public PyPI index"
114125
uses: ansys/actions/[email protected]
115126
with:

release-pypi-test/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@ runs:
110110
using: "composite"
111111
steps:
112112

113+
# TODO: ansys/actions@v11 will enforce the use of trusted publishers
114+
- name: "Warn user if not using trusted publishers"
115+
if: ${{ inputs.use-trusted-publisher == 'false' }}
116+
uses: ansys/actions/_logging@main
117+
with:
118+
level: "WARNING"
119+
message: >
120+
Ansys Actions v11 will remove support for releases using PyPI tokens.
121+
Please contact the PyAnsys Core Team at [email protected] for
122+
enabling trusted publishers releases in your project.
123+
113124
- name: "Release to test PyPI index"
114125
uses: ansys/actions/[email protected]
115126
with:

0 commit comments

Comments
 (0)