Skip to content

Commit e9b050a

Browse files
Bump the github-actions group, remove composite action, pin actions to full length commit SHA (#710)
Remove composite action, inline into workflows directly: Dependabot did not update the actions/setup-python version in the composite action Pin actions to full length commit SHA version (more secure): Xref [https://docs.zizmor.sh/audits/#unpinned-uses](https://docs.zizmor.sh/audits/#unpinned-uses) and [https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions](https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent 38635fe commit e9b050a

File tree

9 files changed

+37
-44
lines changed

9 files changed

+37
-44
lines changed

.github/actions/install-icepyx/action.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/get_pypi_stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2020
with:
2121
ref: "traffic"
2222

@@ -29,7 +29,7 @@ jobs:
2929
3030
# Commits files to repository
3131
- name: Commit changes
32-
uses: EndBug/add-and-commit@v9
32+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
3333
with:
3434
author_name: learn2phoenix
3535
message: "Pypi stats auto-update"

.github/workflows/integration_test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: "Fetch user permission"
3030
id: "permission"
31-
uses: "actions-cool/check-user-permission@v2"
31+
uses: "actions-cool/check-user-permission@7b90a27f92f3961b368376107661682c441f6103" # v2.3.0
3232
with:
3333
require: "write"
3434
username: "${{ github.triggering_actor }}"
@@ -47,14 +47,20 @@ jobs:
4747
exit 1
4848
4949
- name: "Checkout source"
50-
uses: "actions/checkout@v5"
50+
uses: "actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8" # v5.0.0
5151
with:
5252
fetch-depth: 0
5353

54-
- uses: "./.github/actions/install-icepyx"
54+
- name: Set up Python
55+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
5556
with:
5657
python-version: "3.12"
5758

59+
- name: "Install package and test dependencies"
60+
run: |
61+
python -m pip install .
62+
python -m pip install -r requirements-dev.txt
63+
5864
- name: "Run integration tests"
5965
env:
6066
EARTHDATA_USERNAME: "icepyx_devteam"
@@ -66,6 +72,6 @@ jobs:
6672
# pytest icepyx/tests/integration --verbose --cov app -m "[not] downloads_data"
6773

6874
- name: "Upload coverage report"
69-
uses: "codecov/codecov-action@v5.5.0"
75+
uses: "codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7" # v5.5.1
7076
with:
7177
token: "${{ secrets.CODECOV_TOKEN }}"

.github/workflows/linter_actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v5
12+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1313

1414
# Use the Ruff linter to annotate code style / best-practice issues
1515
# NOTE: More config provided in pyproject.toml
1616
- name: Lint and annotate PR
17-
uses: astral-sh/ruff-action@v3
17+
uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1

.github/workflows/publish_to_pypi.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2525
with:
2626
# fetch all history so that setuptools-scm works
2727
fetch-depth: 0
2828
persist-credentials: false
2929

3030
- name: Set up Python
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3232
with:
3333
python-version: '3.11'
3434

@@ -52,7 +52,7 @@ jobs:
5252
ls -lh dist/
5353
5454
- name: Store the distribution packages
55-
uses: actions/upload-artifact@v4
55+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5656
with:
5757
name: python-package-distributions
5858
path: dist/
@@ -72,13 +72,13 @@ jobs:
7272

7373
steps:
7474
- name: Download all the dists
75-
uses: actions/download-artifact@v5
75+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
7676
with:
7777
name: python-package-distributions
7878
path: dist/
7979

8080
- name: Publish distribution 📦 to TestPyPI
81-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
81+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
8282
with:
8383
repository-url: https://test.pypi.org/legacy/
8484

@@ -96,10 +96,10 @@ jobs:
9696

9797
steps:
9898
- name: Download all the dists
99-
uses: actions/download-artifact@v5
99+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
100100
with:
101101
name: python-package-distributions
102102
path: dist/
103103

104104
- name: Publish distribution 📦 to PyPI
105-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
105+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/traffic_action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Steps represent a sequence of tasks that will be executed as part of the job
1818
steps:
1919
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
ref: "traffic"
2323

@@ -35,7 +35,7 @@ jobs:
3535
3636
# Commits files to repository
3737
- name: Commit changes
38-
uses: EndBug/add-and-commit@v9
38+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
3939
with:
4040
author_name: Jessica Scheick
4141
message: "GitHub traffic auto-update"

.github/workflows/typecheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1717
with:
1818
fetch-depth: 0
1919

20-
- uses: actions/setup-python@v5
20+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2121
with:
2222
python-version: "3.11"
2323

@@ -26,4 +26,4 @@ jobs:
2626
python -m pip install .[complete]
2727
python -m pip install -r requirements-dev.txt
2828
29-
- uses: jakebailey/pyright-action@v2
29+
- uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3

.github/workflows/uml_action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repository
15-
uses: actions/checkout@v5
15+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1616
with:
1717
ref: ${{ github.event.pull_request.head.ref }}
1818
- name: set up environment
@@ -29,7 +29,7 @@ jobs:
2929
rm ./packages_dev_uml.svg
3030
mv ./*.svg ./doc/source/user_guide/documentation/
3131
- name: Commit changes
32-
uses: EndBug/add-and-commit@v9
32+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
3333
with:
3434
author_name: GitHub Action
3535
message: "GitHub action UML generation auto-update"

.github/workflows/unit_test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,25 @@ jobs:
3030
matrix:
3131
python-version: ["3.11", "3.13"] #NOTE: min and max Python versions supported by icepyx
3232
steps:
33-
- uses: "actions/checkout@v5"
33+
- uses: "actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8" # v5.0.0
3434
with:
3535
fetch-depth: 0
3636

37-
- uses: "./.github/actions/install-icepyx"
37+
- name: Set up Python
38+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3839
with:
3940
python-version: "${{ matrix.python-version }}"
4041

42+
- name: "Install package and test dependencies"
43+
run: |
44+
python -m pip install .
45+
python -m pip install -r requirements-dev.txt
46+
4147
- name: "Run tests"
4248
run: |
4349
pytest icepyx/tests/unit --verbose --cov app
4450
4551
- name: "Upload coverage report"
46-
uses: "codecov/codecov-action@v5.5.0"
52+
uses: "codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7" # v5.5.1
4753
with:
4854
token: "${{ secrets.CODECOV_TOKEN }}"

0 commit comments

Comments
 (0)