Skip to content

Commit 41645a1

Browse files
authored
Pin non-trusted actions to a hash in CI/CD GitHub workflow (#1341)
1 parent 6efb546 commit 41645a1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
with:
3434
persist-credentials: false
3535
- name: Install uv
36-
uses: astral-sh/setup-uv@v6
36+
# yamllint disable-line rule:line-length
37+
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
3738
with:
3839
# prevent cache poisoning
3940
enable-cache: ${{ github.ref_type == 'tag' && 'false' || 'auto' }}
@@ -85,7 +86,8 @@ jobs:
8586
persist-credentials: false
8687
submodules: true
8788
- name: Install uv
88-
uses: astral-sh/setup-uv@v6
89+
# yamllint disable-line rule:line-length
90+
uses: astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04 # v6.0.0
8991
with:
9092
python-version: ${{ matrix.python-version }}
9193
# prevent cache poisoning
@@ -100,7 +102,8 @@ jobs:
100102
uv run make mototest
101103
- name: Upload coverage to Codecov
102104
if: ${{ matrix.upload-coverage }}
103-
uses: codecov/codecov-action@v5.4.2
105+
# yamllint disable-line rule:line-length
106+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
104107
with:
105108
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
106109
files: ./coverage.xml
@@ -119,7 +122,8 @@ jobs:
119122

120123
steps:
121124
- name: Decide whether the needed jobs succeeded or failed
122-
uses: re-actors/alls-green@release/v1
125+
# yamllint disable-line rule:line-length
126+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
123127
with:
124128
jobs: ${{ toJSON(needs) }}
125129

@@ -150,4 +154,5 @@ jobs:
150154
env:
151155
REF_NAME: ${{ github.ref_name }}
152156
- name: Publish distribution 📦 to PyPI
153-
uses: pypa/gh-action-pypi-publish@release/v1
157+
# yamllint disable-line rule:line-length
158+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

0 commit comments

Comments
 (0)