Skip to content

Commit b8ac264

Browse files
authored
Merge pull request #482 from ev-br/ci_hashes_not_tags
CI: use hashes for GH workflows
2 parents 482d5f9 + 57f661b commit b8ac264

7 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎.github/workflows/array-api-tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ jobs:
4949

5050
steps:
5151
- name: Checkout array-api-compat
52-
uses: actions/checkout@v7.0.1
52+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5353
with:
5454
path: array-api-compat
5555

5656
- name: Checkout array-api-tests
57-
uses: actions/checkout@v7.0.1
57+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5858
with:
5959
repository: data-apis/array-api-tests
6060
submodules: 'true'
6161
path: array-api-tests
6262

6363
- name: Set up Python ${{ matrix.python-version }}
64-
uses: actions/setup-python@v7.0.0
64+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
6565
with:
6666
python-version: ${{ matrix.python-version }}
6767

‎.github/workflows/dependabot-auto-merge.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v3
16+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919
- name: Enable auto-merge for Dependabot PRs

‎.github/workflows/docs-build.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
docs-build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v7.0.1
10-
- uses: actions/setup-python@v7.0.0
9+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
10+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
1111
- name: Install Dependencies
1212
run: |
1313
python -m pip install --upgrade pip
@@ -18,7 +18,7 @@ jobs:
1818
cd docs
1919
make html
2020
- name: Upload Artifact
21-
uses: actions/upload-artifact@v7
21+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
2222
with:
2323
name: docs-build
2424
path: docs/_build/html

‎.github/workflows/docs-deploy.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
environment:
1212
name: docs-deploy
1313
steps:
14-
- uses: actions/checkout@v7.0.1
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1515
- name: Download Artifact
16-
uses: dawidd6/action-download-artifact@v27
16+
uses: dawidd6/action-download-artifact@eab87c9830c39eff17e5a6eadb20bfb4bc880477 # v27
1717
with:
1818
workflow: docs-build.yml
1919
name: docs-build
@@ -23,7 +23,7 @@ jobs:
2323
# See
2424
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
2525
- name: Deploy
26-
uses: JamesIves/github-pages-deploy-action@v4
26+
uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0
2727
with:
2828
folder: docs/_build/html
2929
ssh-key: ${{ secrets.DEPLOY_KEY }}

‎.github/workflows/publish-package.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
runs-on: ubuntu-latest
3131

3232
steps:
33-
- uses: actions/checkout@v7.0.1
33+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3434
with:
3535
fetch-depth: 0
3636

3737
- name: Set up Python
38-
uses: actions/setup-python@v7.0.0
38+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 #v7.1.0
3939
with:
4040
python-version: '3.x'
4141

@@ -60,7 +60,7 @@ jobs:
6060
run: python -m zipfile --list dist/array_api_compat-*.whl
6161

6262
- name: Upload distribution artifact
63-
uses: actions/upload-artifact@v7
63+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
6464
with:
6565
name: dist-artifact
6666
path: dist
@@ -81,7 +81,7 @@ jobs:
8181

8282
steps:
8383
- name: Download distribution artifact
84-
uses: actions/download-artifact@v8
84+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
8585
with:
8686
name: dist-artifact
8787
path: dist
@@ -102,12 +102,12 @@ jobs:
102102

103103
- name: Publish distribution 📦 to PyPI
104104
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
105-
uses: pypa/gh-action-pypi-publish@v1.14.2
105+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
106106
with:
107107
print-hash: true
108108

109109
- name: Create GitHub Release from a Tag
110-
uses: softprops/action-gh-release@v3
110+
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
111111
if: startsWith(github.ref, 'refs/tags/')
112112
with:
113113
files: dist/*

‎.github/workflows/ruff.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
runs-on: ubuntu-latest
66
continue-on-error: true
77
steps:
8-
- uses: actions/checkout@v7.0.1
8+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
99
- name: Install Python
10-
uses: actions/setup-python@v7.0.0
10+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 #v7.1.0
1111
with:
1212
python-version: "3.11"
1313
- name: Install dependencies

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
python-version: '3.14'
2828

2929
steps:
30-
- uses: actions/checkout@v7.0.1
31-
- uses: actions/setup-python@v7.0.0
30+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 #v7.1.0
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Install Dependencies

0 commit comments

Comments
 (0)