Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Publish to PyPi

Check warning on line 14 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

publish.yml:14: overly broad permissions: default permissions used due to no permissions: block

on:
release:
types: [published]

jobs:
build-artifacts:

Check warning on line 21 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

publish.yml:21: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

Check failure on line 24 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 24 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:24: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: Set up Python
uses: actions/setup-python@v6

Check failure on line 26 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 26 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:26: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
python-version: "3.13"

Expand All @@ -41,20 +41,20 @@
run: |
python -m twine check dist/*
pwd
- uses: actions/upload-artifact@v7

Check failure on line 44 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 44 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:44: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
name: releases
path: dist

test-built-dist:

Check warning on line 49 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

publish.yml:49: overly broad permissions: default permissions used due to no permissions: block
needs: build-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v6

Check failure on line 53 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 53 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:53: unpinned action reference: action is not pinned to a hash (required by blanket policy)
name: Install Python
with:
python-version: '3.13'
- uses: actions/download-artifact@v8

Check failure on line 57 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 57 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:57: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
name: releases
path: dist
Expand All @@ -64,7 +64,7 @@
ls -ltrh dist
- name: Publish package to TestPyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@v1.14.0
uses: pypa/gh-action-pypi-publish@v1.14.2

Check failure on line 67 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 67 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:67: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check notice on line 67 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

publish.yml:67: prefer trusted publishing for authentication: this step
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN }}
Expand All @@ -78,17 +78,17 @@
python -m pip install --upgrade pip
python -m pip install --extra-index-url https://test.pypi.org/simple --upgrade xee
python -c "import xee; print(xee.__version__)"
upload-to-pypi:

Check warning on line 81 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

publish.yml:81: overly broad permissions: default permissions used due to no permissions: block
needs: test-built-dist
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v7

Check failure on line 86 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 86 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:86: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
name: releases
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.14.0
uses: pypa/gh-action-pypi-publish@v1.14.2

Check failure on line 91 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 91 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

publish.yml:91: unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check notice on line 91 in .github/workflows/publish.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

publish.yml:91: prefer trusted publishing for authentication: this step
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
Loading