Skip to content

Commit 62bc6af

Browse files
committed
MNT: Use hash for Action workflow versions and update if needed
1 parent 74fc6e3 commit 62bc6af

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/check_milestone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
milestone_checker:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/github-script@v7
20+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2121
if: github.repository == 'astropy/sphinx-automodapi'
2222
with:
2323
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci_workflows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ jobs:
7272
toxenv: py313-test-sphinxdev
7373

7474
steps:
75-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
7676
with:
7777
fetch-depth: 0
7878
- name: Set up Python ${{ matrix.python-version }}
79-
uses: actions/setup-python@v5
79+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
8080
with:
8181
python-version: ${{ matrix.python-version }}
8282
allow-prereleases: true
@@ -99,6 +99,6 @@ jobs:
9999
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }}
100100
- name: Upload coverage to codecov
101101
if: ${{ contains(matrix.toxenv,'-cov') }}
102-
uses: codecov/codecov-action@v4
102+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
103103
with:
104104
file: ./coverage.xml

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
if: ((github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || contains(github.event.pull_request.labels.*.name, 'Build wheels'))
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
1717
with:
1818
fetch-depth: 0
19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2020
with:
2121
python-version: 3.8
2222

@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Publish distribution 📦 to PyPI
4747
if: startsWith(github.ref, 'refs/tags')
48-
uses: pypa/gh-action-pypi-publish@release/v1
48+
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
4949
with:
5050
user: __token__
5151
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)