Skip to content

Commit 5513cc1

Browse files
Bump the gh-actions group across 1 directory with 5 updates (#274)
* Bump the gh-actions group across 1 directory with 5 updates Bumps the gh-actions group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `5` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.4.0` | `5.6.0` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `5.4.0` | `5.5.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `5` | | [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | `1.12.4` | `1.13.0` | Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) Updates `actions/setup-python` from 5.4.0 to 5.6.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5.4.0...v5.6.0) Updates `codecov/codecov-action` from 5.4.0 to 5.5.0 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5.4.0...v5.5.0) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v5) Updates `pypa/gh-action-pypi-publish` from 1.12.4 to 1.13.0 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](pypa/gh-action-pypi-publish@v1.12.4...v1.13.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-actions - dependency-name: actions/setup-python dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gh-actions - dependency-name: codecov/codecov-action dependency-version: 5.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gh-actions - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: gh-actions - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gh-actions ... Signed-off-by: dependabot[bot] <[email protected]> * Pin to hash for all github actions Xref https://docs.zizmor.sh/audits/#unpinned-uses * Fix artipacked by setting persist-credentials: false Xref https://docs.zizmor.sh/audits/#artipacked * Remove unsound-condition Xref https://docs.zizmor.sh/audits/#unsound-condition * Fix excessive-permissions Xref https://docs.zizmor.sh/audits/#excessive-permissions * Run test-upstream on Python 3.13 instead of 3.11 Because xarray>=2025.7.0 pins to python>=3.11. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wei Ji <[email protected]>
1 parent 5898a76 commit 5513cc1

File tree

4 files changed

+41
-23
lines changed

4 files changed

+41
-23
lines changed

.github/workflows/main.yaml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ name: CI
22

33
on:
44
push:
5-
branches: main
5+
branches: [main]
66
pull_request:
7-
branches: main
7+
branches: [main]
88
paths-ignore:
99
- ".github/workflows/*-release.yaml"
1010
- "asv_bench/**"
1111
- "doc/**"
1212
schedule:
1313
- cron: "0 0 * * *"
1414

15+
permissions: {}
16+
1517
concurrency:
1618
group: ${{ github.workflow }}-${{ github.ref }}
1719
cancel-in-progress: true
@@ -25,13 +27,18 @@ jobs:
2527
python-version: ["3.10", "3.11", "3.12"]
2628
fail-fast: false
2729
steps:
28-
- uses: actions/checkout@v4
30+
- name: Checkout
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
with:
33+
persist-credentials: false
34+
2935
- name: Setup Python
30-
uses: actions/setup-python@v5.4.0
36+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3137
with:
3238
python-version: ${{ matrix.python-version }}
3339
architecture: x64
34-
- uses: actions/cache@v4
40+
41+
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
3542
with:
3643
path: ~/.cache/pip
3744
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }}
@@ -40,12 +47,13 @@ jobs:
4047
- run: |
4148
python -m pip install -e .[dev]
4249
python -m pip list
50+
4351
- name: Running Tests
4452
run: |
4553
pytest --verbose --cov=. --cov-report=xml
54+
4655
- name: Upload coverage to Codecov
47-
uses: codecov/[email protected]
48-
if: ${{ matrix.python-version }} == 3.10
56+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
4957
with:
5058
file: ./coverage.xml
5159
fail_ci_if_error: false
@@ -55,21 +63,27 @@ jobs:
5563
runs-on: ubuntu-latest
5664
strategy:
5765
matrix:
58-
python-version: ["3.10", "3.11", "3.12"]
66+
python-version: ["3.11", "3.12", "3.13"]
5967
fail-fast: false
6068
steps:
61-
- uses: actions/checkout@v4
69+
- name: Checkout
70+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
71+
with:
72+
persist-credentials: false
73+
6274
- name: Setup Python
63-
uses: actions/setup-python@v5.4.0
75+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6476
with:
6577
python-version: ${{ matrix.python-version }}
6678
architecture: x64
79+
6780
- run: |
6881
python -m pip install -e .[dev]
6982
python -m pip install --upgrade \
7083
git+https://github.com/dask/dask \
7184
git+https://github.com/pydata/xarray
7285
python -m pip list
86+
7387
- name: Running Tests
7488
run: |
7589
py.test --verbose --cov=.

.github/workflows/pypi-release.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ jobs:
1616
runs-on: ubuntu-latest
1717
if: github.repository == 'xarray-contrib/xbatcher'
1818
steps:
19-
- uses: actions/checkout@v4
19+
- name: Checkout
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2021
with:
2122
fetch-depth: 0
22-
- uses: actions/[email protected]
23-
name: Install Python
23+
persist-credentials: false
24+
25+
- name: Install Python
26+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2427
with:
2528
python-version: 3.11
2629

@@ -53,7 +56,7 @@ jobs:
5356
else
5457
echo "✅ Looks good"
5558
fi
56-
- uses: actions/upload-artifact@v4
59+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5760
with:
5861
name: releases
5962
path: dist
@@ -62,11 +65,11 @@ jobs:
6265
needs: build-artifacts
6366
runs-on: ubuntu-latest
6467
steps:
65-
- uses: actions/setup-python@v5.4.0
68+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6669
name: Install Python
6770
with:
6871
python-version: 3.11
69-
- uses: actions/download-artifact@v4
72+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
7073
with:
7174
name: releases
7275
path: dist
@@ -80,7 +83,7 @@ jobs:
8083
python -m pip install dist/xbatcher*.whl
8184
python -m xbatcher.util.print_versions
8285
- name: Publish package to TestPyPI
83-
uses: pypa/gh-action-pypi-publish@v1.12.4
86+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
8487
with:
8588
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
8689
repository-url: https://test.pypi.org/legacy/
@@ -91,12 +94,12 @@ jobs:
9194
if: github.event_name == 'release'
9295
runs-on: ubuntu-latest
9396
steps:
94-
- uses: actions/download-artifact@v4
97+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
9598
with:
9699
name: releases
97100
path: dist
98101
- name: Publish package to PyPI
99-
uses: pypa/gh-action-pypi-publish@v1.12.4
102+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
100103
with:
101104
password: ${{ secrets.PYPI_API_TOKEN }}
102105
# verbose: true

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
2626

2727
# Drafts your next Release notes as Pull Requests are merged into "main"
28-
- uses: release-drafter/release-drafter@v6
28+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2929
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
3030
# with:
3131
# config-name: my-config.yml

.github/workflows/testpypi-release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ jobs:
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222
with:
2323
# fetch all history so that setuptools-scm works
2424
fetch-depth: 0
25+
persist-credentials: false
2526

2627
- name: Set up Python
27-
uses: actions/setup-python@v5.4.0
28+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2829
with:
2930
python-version: "3.11"
3031

@@ -49,7 +50,7 @@ jobs:
4950
python -m xbatcher.util.print_versions
5051
5152
- name: Publish package to TestPyPI
52-
uses: pypa/gh-action-pypi-publish@v1.12.4
53+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
5354
with:
5455
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
5556
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)