Skip to content

Commit 2c262c6

Browse files
authored
Pin and update actions (#6)
Updates actions and pin as suggested by OpenSSF Scorecard, see https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies.
1 parent f4005fb commit 2c262c6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/actions/setup-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010

1111
steps:
1212
- name: Set up Python
13-
uses: actions/setup-python@v5
13+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1414
with:
1515
python-version: '3.11'
1616

.github/workflows/buildReleaseAndPublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout torch-mlir
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
with:
3535
repository: llvm/torch-mlir
3636
ref: refs/heads/main
@@ -53,14 +53,14 @@ jobs:
5353
cp build_tools/python_deploy/wheelhouse/torch*.whl dist/
5454
5555
- name: Upload python wheels
56-
uses: actions/upload-artifact@v4
56+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5757
with:
5858
if-no-files-found: error
5959
name: snapshot-${{ matrix.package }}-${{ matrix.py_version }}-${{ env.tm_package_version }}
6060
path: dist
6161

6262
- name: Release python wheels
63-
uses: ncipollo/release-action@v1.14.0
63+
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v.1.15.0
6464
with:
6565
artifacts: dist/*.whl
6666
token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/buildReleaseAndPublishWindows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout torch-mlir
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
repository: llvm/torch-mlir
3939
ref: refs/heads/main
@@ -43,7 +43,7 @@ jobs:
4343
uses: ./.github/actions/setup-build
4444

4545
- name: "Configuring MSVC"
46-
uses: ilammy/msvc-dev-cmd@v1.13.0
46+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
4747

4848
- name: Build torch-mlir
4949
run: |
@@ -60,14 +60,14 @@ jobs:
6060
delvewheel repair --add-path ./build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir/_mlir_libs --add-dll TorchMLIRAggregateCAPI.dll --no-dll 'c10.dll;torch_python.dll;torch_cpu.dll' -v dist/torch_mlir*.whl -w dist
6161
6262
- name: Upload python wheels
63-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6464
with:
6565
if-no-files-found: error
6666
name: snapshot-${{ matrix.package }}-${{ matrix.py_version }}-${{ env.tm_package_version }}
6767
path: dist
6868

6969
- name: Release python wheels
70-
uses: ncipollo/release-action@v1.14.0
70+
uses: ncipollo/release-action@cdcc88a9acf3ca41c16c37bb7d21b9ad48560d87 # v1.15.0
7171
with:
7272
artifacts: dist/*.whl
7373
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)