Skip to content

Commit eee4574

Browse files
authored
chore: pin GitHub Actions versions to commit hashes (#519)
This will help prevent attacks such as [this one](https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/). Dependabot is able to update these versions automatically, and it will preserve the readable version comments.
1 parent 525a023 commit eee4574

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci_workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
postgres-version: "17"
6262
use-copy: "false"
6363
steps:
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6565
with:
6666
fetch-tags: true
6767
- name: Fix key permissions
@@ -77,7 +77,7 @@ jobs:
7777
docker compose -f docker-compose.yml up -d
7878
- run: docker ps
7979
- name: Set up Python '${{ matrix.python-version }}'
80-
uses: actions/setup-python@v5
80+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
8181
with:
8282
python-version: '${{ matrix.python-version }}'
8383
- name: Install Tox
@@ -115,9 +115,9 @@ jobs:
115115
matrix:
116116
use-copy: ["true", "false"]
117117
steps:
118-
- uses: actions/checkout@v4
118+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
119119
- name: Set up Python
120-
uses: actions/setup-python@v5
120+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
121121
with:
122122
python-version: 3.x
123123
- name: Install dependencies

.github/workflows/project_add.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: ${{ github.actor != 'dependabot[bot]' }}
2121
steps:
22-
- uses: actions/add-to-project@v1.0.2
22+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
2323
with:
2424
project-url: https://github.com/orgs/MeltanoLabs/projects/3
2525
github-token: ${{ secrets.MELTYBOT_PROJECT_ADD_PAT }}

.github/workflows/release_workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
name: Build wheel and sdist
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1212
with:
1313
fetch-depth: 0
1414
ref: ${{ github.ref }}
15-
- uses: hynek/build-and-inspect-python-package@v2
15+
- uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0
1616

1717
publish:
1818
name: Publish to PyPI
@@ -27,14 +27,14 @@ jobs:
2727
id-token: write
2828

2929
steps:
30-
- uses: actions/download-artifact@v4
30+
- uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
3131
with:
3232
name: Packages
3333
path: dist
34-
- uses: svenstaro/upload-release-action@v2
34+
- uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
3535
with:
3636
file: dist/*.whl
3737
tag: ${{ github.ref }}
3838
overwrite: true
3939
file_glob: true
40-
- uses: pypa/gh-action-pypi-publish@v1.12.4
40+
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

0 commit comments

Comments
 (0)