Skip to content

Commit f76344c

Browse files
Merge pull request #94 from andrewkaufman/ci
CI : Harden workflows by using pinned SHAs for all actions
2 parents ef9e352 + 0479f9b commit f76344c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/actions/bootstrap/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ runs:
1818
using: "composite"
1919
steps:
2020
- name: Set up Python
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
2222
with:
2323
python-version: ${{ inputs.python-version }}
2424

2525
- name: Install uv
26-
uses: astral-sh/setup-uv@v3
26+
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
2727
with:
2828
enable-cache: ${{ inputs.enable-uv-cache }}
2929
cache-dependency-glob: ${{ inputs.cache-dependency-glob }}

.github/workflows/benchmark.yml

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

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2323

2424
- name: Bootstrap
2525
uses: ./.github/actions/bootstrap
@@ -50,14 +50,14 @@ jobs:
5050
uv run --group dev poe benchmark "${args[@]}"
5151
5252
- name: Upload benchmark results
53-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5454
with:
5555
name: urdf-usd-converter-benchmarks-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('{0}', github.ref_name) }}
5656
path: benchmarks/*.*
5757

5858
- name: Comment PR with results
5959
if: github.event_name == 'pull_request'
60-
uses: actions/github-script@v7
60+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
6161
with:
6262
script: |
6363
// Wait a bit for artifacts to be fully uploaded

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2121

2222
- name: Bootstrap
2323
uses: ./.github/actions/bootstrap
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3636

3737
- name: Bootstrap
3838
uses: ./.github/actions/bootstrap
@@ -47,7 +47,7 @@ jobs:
4747
run: git restore README.md
4848

4949
- name: Upload artifacts
50-
uses: actions/upload-artifact@v4
50+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5151
with:
5252
name: urdf-usd-converter-dist-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('{0}', github.ref_name) }}
5353
path: dist/
@@ -65,13 +65,13 @@ jobs:
6565
runs-on: ${{ matrix.os }}
6666
steps:
6767
- name: Checkout repository
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
6969

7070
- name: Bootstrap
7171
uses: ./.github/actions/bootstrap
7272

7373
- name: Download artifacts
74-
uses: actions/download-artifact@v4
74+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
7575
with:
7676
name: urdf-usd-converter-dist-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('{0}', github.ref_name) }}
7777
path: dist/
@@ -80,7 +80,7 @@ jobs:
8080
run: uv run --group dev poe test-ci
8181

8282
- name: Upload report artifacts
83-
uses: actions/upload-artifact@v4
83+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8484
with:
8585
name: urdf-usd-converter-coverage-${{ matrix.os }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('{0}', github.ref_name) }}
8686
include-hidden-files: true
@@ -90,13 +90,13 @@ jobs:
9090
9191
- name: Upload test results to Codecov
9292
if: ${{ !cancelled() }}
93-
uses: codecov/test-results-action@v1
93+
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
9494
with:
9595
files: ${{ github.workspace }}/.results.xml
9696
token: ${{ secrets.CODECOV_TOKEN }}
9797

9898
- name: Upload coverage reports to Codecov
99-
uses: codecov/codecov-action@v4
99+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
100100
with:
101101
files: ${{ github.workspace }}/.coverage.xml
102102
flags: unittests
@@ -115,15 +115,15 @@ jobs:
115115
runs-on: ${{ matrix.os }}
116116
steps:
117117
- name: Checkout repository
118-
uses: actions/checkout@v4
118+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
119119

120120
- name: Bootstrap
121121
uses: ./.github/actions/bootstrap
122122
with:
123123
enable-uv-cache: 'false'
124124

125125
- name: Download artifacts
126-
uses: actions/download-artifact@v4
126+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
127127
with:
128128
name: urdf-usd-converter-dist-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('{0}', github.ref_name) }}
129129
path: dist/
@@ -172,7 +172,7 @@ jobs:
172172
id-token: write
173173
steps:
174174
- name: Download wheel and source tarball
175-
uses: actions/download-artifact@v4
175+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
176176
with:
177177
name: urdf-usd-converter-dist-${{ github.ref_name }}
178178
path: dist/

0 commit comments

Comments
 (0)