Skip to content

Commit 931be4d

Browse files
committed
PYTHON-5353 Use pinned sources for GitHub Actions
1 parent c291853 commit 931be4d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
# Initializes the CodeQL tools for scanning.
5757
- name: Initialize CodeQL
58-
uses: github/codeql-action/init@v3
58+
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3
5959
with:
6060
languages: ${{ matrix.language }}
6161
build-mode: none
@@ -71,6 +71,6 @@ jobs:
7171
pip install -e .
7272
7373
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v3
74+
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3
7575
with:
7676
category: "/language:${{matrix.language}}"

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ jobs:
7979
name: all-dist-${{ github.run_id }}
8080
path: dist/
8181
- name: Publish package distributions to TestPyPI
82-
uses: pypa/gh-action-pypi-publish@release/v1
82+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
8383
with:
8484
repository-url: https://test.pypi.org/legacy/
8585
skip-existing: true
8686
attestations: ${{ env.DRY_RUN }}
8787
- name: Publish package distributions to PyPI
8888
if: startsWith(env.DRY_RUN, 'false')
89-
uses: pypa/gh-action-pypi-publish@release/v1
89+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
9090

9191
post-publish:
9292
needs: [publish]

.github/workflows/test-python.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Run linkcheck
8484
run: tox -m linkcheck
8585
- name: Start MongoDB
86-
uses: supercharge/[email protected]
86+
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12.0
8787
with:
8888
mongodb-version: 5.0
8989
- name: Run doctest

.github/workflows/zizmor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
with:
1919
persist-credentials: false
2020
- name: Setup Rust
21-
uses: actions-rust-lang/setup-rust-toolchain@v1
21+
uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1
2222
- name: Get zizmor
2323
run: cargo install zizmor
2424
- name: Run zizmor
2525
run: zizmor --format sarif . > results.sarif
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
- name: Upload SARIF file
29-
uses: github/codeql-action/upload-sarif@v3
29+
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3
3030
with:
3131
sarif_file: results.sarif
3232
category: zizmor

0 commit comments

Comments
 (0)